1

Tp command selectors. (1.13)

_JK47_ 1/29/18 6:43 pm
4.3k
1/29/2018 7:58 pm
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?
Posted by
_JK47_
Level 1 : New Network
0

  Have something to say?

JoinSign in

1

ShelLuser
01/29/2018 7:58 pm
Level 61 : High Grandmaster System
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.
1

Welcome