[MC-9063] Commandblock specific player name and arguments broken Created: 02/Feb/13  Updated: 11/Jun/13  Resolved: 03/Feb/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.6, Minecraft 1.4.7
Fix Version/s: None

Type: Bug
Reporter: Mitchel Albertz Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: None
Environment:

Windows 7 Ultimate, Java x64


Issue Links:
Duplicate
is duplicated by MC-9180 Testfor playername parameters does no... Resolved
is duplicated by MC-9891 Command block bug Resolved
is duplicated by MC-15765 /testfor command not working with pla... Resolved
Confirmation Status: Unconfirmed
Game Mode: Creative

 Description   

When I use a commandblock and write a code with a specific player name and arguments. I expect the commandblock to execute the command when redstone power is aplied.

Instead when redstonepower is provided nothing happens.

1. Place commandblock and type:tp taurus110 [x=100,y=65,z=2,r=3] 55 12 -399
2. Apply redstonepower to the commandblock
3. Notice nothing happens when in- or outside of the search radius at the specified coordinates.



 Comments   
Comment by Alexander Spielvogel [ 25/Mar/13 ]

Does this work if the player is offline?

Comment by Dean Baset [ 14/Feb/13 ]

I'm not sure if this is in the current version, but you can do this in a snapshot.
Kumasasa, he wants to have it only apply to taurus100 within 3 blocks of x=100 y=65 z=2.
The solution is in the snapshot:

tp @a[name=taurus100,x=100,y=65,z=2,r=3] 55 12 -399

This will search for:
All players that are named taurus100, and are within 3 blocks of the coordinate 100, 65, 2

Comment by Kumasasa [ 03/Feb/13 ]

This is working as intended.
You can put either a specific player in the command or a selection of players.

e.g.

tp taurus110 55 12 -399

or

tp @a[x=100,y=65,z=2,r=3] 55 12 -399

Read on here http://www.minecraftwiki.net/wiki/Command_Block

Generated at Sun Jan 12 12:19:50 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.