mojira.dev
MC-9063

Commandblock specific player name and arguments broken

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.

Linked issues

Comments 3

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

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

Does this work if the player is offline?

Mitchel Albertz

(Unassigned)

Unconfirmed

Minecraft 1.4.6, Minecraft 1.4.7

Retrieved