Mojira Archive
MC-80173

Player rotation detection missaligned

The bug

While I was working on player rotation detection, I noticed that when I used the command "/testfor @p[ry=13,rym=9]" While facing ry=14 (according to the F3 info "Facing: south (Towards positive Z) (14.0 / 0.3)") the player was detected, and should not have been.

How to reproduce

  1. Run:
    /scoreboard objectives add facing dummy
    /scoreboard objectives setdisplay sidebar facing
    /scoreboard players add @s facing 0
  2. Face at: (Towards positive Z) (14.0 / 0.3) (/tp @s ~ ~ ~ 14.0 0.3)
  3. Run:
     /execute at @a[y_rotation=13..9] run scoreboard players set @p facing 1
    

    See how your score will change from 0 to 1.

Awaiting Response

John Dame

2015-05-08, 06:34 PM

2020-01-09, 05:58 PM

2020-01-09, 05:58 PM

3

1

Confirmed

(Unassigned)

Minecraft 1.8.4 - Minecraft 19w07aMinecraft 1.8.4, Minecraft 1.9, Minecraft 16w35a, Minecraft 1.12.1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a

-