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

NBT Rotation of the player does not work as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a
    • None
    • Windows 7, Windows 10, Java 8
    • Unconfirmed

      When extracting the rotation tag from the NBT, a number between 0 to 360 is returned..

      However, When passing the real 0 rotation in the code(not the wrapped one that is in F3), The NBT value goes to minus and displays a wrong number..

      Fix:
      The NBT tag for rotation needs the same wrapper that F3 uses, and adding 180 to the number before passing it to the NBT, That way it'll be really a number between 0 to 360

            Unassigned Unassigned
            SHsuperCM shahar ben hamo
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: