1

Tp command selectors. (1.13)

_JK47_'s Avatar _JK47_1/29/18 6:43 pm
1 emeralds 4.2k 1
1/29/2018 7:58 pm
ShelLuser's Avatar ShelLuser
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_'s Avatar
_JK47_
Level 1 : New Network
0

Create an account or sign in to comment.

1

1
01/29/2018 7:58 pm
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome