1
So i'm in the snapshot 18w03b and I new some commands I had in 1.12 wouldn't work. I'm going around my world trying to fix commands that no longer work. I eventually got to a tp command (/tp @a{r=3} -117 5 109) I knew that wouldn't work so I looked up what replaced r in the command. It was distance. So the new command I had was /tp @a{distance=3} -117 5 109. It isn't working though. can someone explain why?
Create an account or sign in to comment.
1
1
That's because curly brackets {} are never used for target selectors (not in 1.13 nor in previous versions), you need square brackets for that: [].
So this is what you'll need: /tp @a[distance=..3] -117 5 109
The Minecraft wiki has an article about 1.13, which also includes several comparisons of changed commands (the old (current) version vs. the new 1.13 version).
Also noteworthy: if you use r=3 on 1.12 then this means "everything up to 3 blocks", which is why you need to use ..3 which specifies a range: everything below and up to 3 blocks.
So this is what you'll need: /tp @a[distance=..3] -117 5 109
The Minecraft wiki has an article about 1.13, which also includes several comparisons of changed commands (the old (current) version vs. the new 1.13 version).
Also noteworthy: if you use r=3 on 1.12 then this means "everything up to 3 blocks", which is why you need to use ..3 which specifies a range: everything below and up to 3 blocks.