mojira.dev
MC-49910

command block arguments ry/rym and rx/rxm are switched

when you type this command in a command block and test it while looking west, and not down:
/testfor @p[rx=134,rxm=45] it will not find anybody, while it should.
However if you now look down, it will find you, because rx and ry are simply switched and act wrongly. as if y = x and x = y.
changing the command to:
/testfor @p[ry=134,rym=45] finds you as long as you are facing west, not as long as you are facing down.

Comments 4

ry/rym is detecting rotation around the Y axis = yaw
rx/rxm is detecting rotation around the X axis = pitch

oh wow, that explains it well! thanks, and sorry for the noise!

DicoTheRedstoner

(Unassigned)

Unconfirmed

Minecraft 14w08a

Retrieved