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

relative x-rot teleport over 90 is incorect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.7
    • Windows 8.1, version 6.3
      Whatever this means System.getProperty('os.arch') == 'amd64'

      64 java version 1.8.0_31
      downloaded from Oracle Corporation
    • Unconfirmed
    • Creative

      When the <x-rot> argument in /tp [target player] <x> <y> <z> [<y-rot> <x-rot>] is relative (has a ~ ), and is over 90, you look in the wrong direction.

      to recreate:
      look in the direction 0.0 / 80.0
      run the command /tp @p ~ ~ ~ ~ ~-100
      you will be looking in the direction -180.0 / 0.0 rather than the expected 0.0 / -20.0

      The same thing happens with values under -90

      the formula for the actual relative x-rot is (i think) f ( x ) = | x + 90 | - | x - 90 | - x where x = the relative x-rot, and f ( x ) = the actual amount rotated and if | x | > 90, y-rot changes by 180

      I think what's happening is that the game looks at the relative /tp as exact, and thus makes it so that any relative value over 90 is changed to be within -90 to 90

        1. 2015-07-11_23.15.23.png
          2015-07-11_23.15.23.png
          247 kB
        2. 2015-07-11_23.16.02.png
          2015-07-11_23.16.02.png
          59 kB
        3. 2015-07-11_23.16.08.png
          2015-07-11_23.16.08.png
          223 kB
        4. 2015-07-11_23.16.15.png
          2015-07-11_23.16.15.png
          61 kB
        5. 2015-07-11_23.16.18.png
          2015-07-11_23.16.18.png
          242 kB

            Unassigned Unassigned
            Lewmas Fain Samuel Finch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: