Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-80173

Player rotation detection missaligned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 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
    • None
    • Confirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            Drith John Dame
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: