mojira.dev
MC-72378

Testing for a player's rotation using /execute and /testfor to summon an arrow in one direction causes arrows to summon in the ry positive and facing the ry negative rotations.

I have been doing redstone for a project that I started since the 1.8 snapshots. Since the third to last snapshot came out, I started to experience problems with command blocks using the command: "/execute @p[score_Spear_min=6,ry=92,rym=88] ~ ~ ~ /testfor @p[ry=92,rym=88]" which leads a comparator output to a command block doing: "/execute @p[score_Spear_min=6] ~ ~ ~ /summon Arrow ~-1 ~1 ~ {damage:2.3223,Motion:[-2.50119,0.2100232,0.0]}". There is another command block set next to it with the same commands, except that the ry and the rym are both negative, and the arrow is summoned at ~1 ~1 ~ and a positive motion. When one gets activated, it activates both sets and summon two arrows going in opposite directions.


From MC-78450:

The target selectors ry= and rym= appear to be broken. I tested the following target selectors with both @p and @a in both a command block and in the chat bar.

[ry=-90]
Applies to targets with Horizontal Rotation greater than 0 or less than -89.0 (including all positive numbers)
This target selector is supposed to select only targets with a maximum Horizontal Rotation of -90

[ry=90]
Applies to targets with Horizontal Rotation between 0.1 to 90.9
This target selector is supposed to select only targets with a maximum Horizontal Rotation of 90

rym=90
Applies to targets with Horizontal Rotation greater than 90.0 or less than 0.1 (including all negative numbers)
This target selector is supposed to select only targets with a minimum Horizontal Rotation of 90

rym=-90
Applies to targets with Horizontal Rotation between 0 and -89.9
This target selector is supposed to select only targets with a minimum Horizontal Rotation of -90

Linked issues

Attachments

Comments 3

My guess is that this is related to the bug I just posted.

Link:
MC-78450

Might relate to MC-90089

Can you please explain the problem a little bit more in detail, maybe also with a more general example or a way to reproduce?

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Josh Jaggernauth

(Unassigned)

Community Consensus

Minecraft 1.8

Retrieved