[MC-2837] You can not use targets with player names Created: 12/Nov/12  Updated: 02/Mar/24  Resolved: 12/Nov/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.4
Fix Version/s: None

Type: Bug
Reporter: Ben Edwards Assignee: Unassigned
Resolution: Invalid Votes: 1
Labels: None
Environment:

All


Confirmation Status: Unconfirmed

 Description   

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   
Comment by Ben Edwards [ 12/Nov/12 ]

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

Comment by [Mod] CubeTheThird [ 12/Nov/12 ]

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)

Generated at Sun Jan 12 11:59:13 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.