mojira.dev
MC-44758

Commandblock @ selectors are offcentered

If you use the command "/tellraw @a[[r=1]] Test" in an Command Block, the message will be sent to you too if youre standing in the West / Northwest / North of the Command Block. I think it uses the corner and not the center of the block.

I expected that the Command Block itself would be the place to be and not the blocks arround it.

The picture below shows you where i expected it to be (green wool) and where i got the messages too (red wool).

It can't be fixed by adding the coordinates with .5 at the end.

Linked issues

Attachments

Comments 4

Block coordinates are by design always at the NW corner of a block, see the explaination in MC-4794

Ok that seems to be right but i would need this to create a testfor for an person at a single block and not at an location of 4 blocks.

I think I know what he means. I am making an adventure map in the new snapshot, and I'm having the same problem. This is a picture of what I'm getting when I type in the command /testfor @a[ x, y, z, r=1 ]. The green wool is where the x, y and z is set at, and the red wool is where the command also is looking for players. http://i.imgur.com/9a9ZQ2Z.png

Armin Abe

michael

Unconfirmed

block, redstone

Minecraft 14w02c

Minecraft 14w03a

Retrieved