mojira.dev
MC-50147

Coordinates bugs in commands

Stranger Wise, if I execute

/kill @a[x=-518,y=102,z=-1019]

it kills me everywhere

And also this only detects whether I am riding a minecart or not:

/testfor @p[x=-507,y=-1008] {Riding:{id:MinecartRideable}}

And also this:

/testfor @p[x=-507,y=108,z=-1008,dy=80] {Riding:{id:MinecartRideable},SelectedItemSlot:0}

always has the output: "[20:51:23] The entity UUID provided is in an invalid format"

Linked issues

Attachments

Comments 2

dx dy dz cant take negative values.

the correct command is:

/kill @a[x=-518,y=102,z=-1019,dx=22,dy=22,dz=22]

so the command is testing in the region:

"x-518 to -496" "y102 to 124" "z -1019 to -997"

Oh sorry, I thought this would be possible, Mojang should make Minecraft more simple... 😞
Thanks 🙂

Well your is wrong too 😃
It would be correct like this:
/kill @a[x=-518,y=80,z=-1019,dx=22,dy=22,dz=22]
But still thanks 🙂

marcono1234

(Unassigned)

Unconfirmed

Minecraft 14w08a

Retrieved