mojira.dev
MC-2837

You can not use targets with player names

You can not use targets with player names e.g: /tp <playername>[r=6] X Y Z this means you can't have it so you only teleport if you push it and not another player

What I expected to happen was...:
i thought it would only teleport me if i was the one who pushed it

What actually happened was...:
It would not teleport me only when i removed the [r=6] it worked, but then i teleported when anyone pushed it

Steps to Reproduce:
1. Place a command block
2. put this text into it: /tp <playername>[r=<range>] <X> <Y> <Z>
3. push the button, nothing will happen (unless you remove the [r=<range>] but then anyone can push it to tp you)

Comments 2

This is not a bug, but a feature request, and should be posted on the MC forums here. At present ranges are supported only with variable targets (ex @a)

oh right ok, thanks for clearing this up

I knew that targets worked for @a, @p, @f i just didn't know it didn't work for player names

Ben Edwards

(Unassigned)

Unconfirmed

Minecraft 1.4.2, Minecraft 1.4.4

Retrieved