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

Players rotation nbt value going out of the -180 to 180 range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w05a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, 1.15.2, 20w21a
    • None
    • Confirmed
    • (Unassigned)

      The bug

      If a player rotates left far enough the rotation value will go into negatives resetting to 0 after reaching -360. The rotation value should only range from -180 to 180 instead of -360 to 360.
      You can recreate this by entering this command:

      /data get entity @p Rotation[0] 1
      

      Rotate to different directions and look at what the output is. If you spin far to the right you will get a positive output, if you spin far to the left, you will get a negative output.

            Unassigned Unassigned
            GlobbyLikesSlime Ryan Taylor
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: