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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 18w05a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                GlobbyLikesSlime Ryan Taylor
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: