When using tp to modify x rotation, any value larger than 90 (or smaller than -90) will affect the y rotation.
Example of expected behaviour:
Set default position: /tp ~ ~ ~ 0 -90
Reduce facing direction: /tp ~ ~ ~ ~ ~90
Viewing x angle is now at 0
Example of erroneous behaviour:
Set default position: /tp ~ ~ ~ 0 -90
Reduce facing direction: /tp ~ ~ ~ ~ ~91
Viewing x angle doesn't change, and y angle changes to -180.
I expected the x angle to increase by 91, going from -90 to 1.
Linked issues
is duplicated by 1
Comments 7
Except that the entire pitch spectrum is 180 degrees (-90 to 90). If the player is at -90, then adding 91 degrees should put the player facing slightly down. The coords part of /tp already supports this, as you can teleport a relatively greater distance than the limitations of absolute teleportation.
There are 180 degrees between -90 and 90, so we should be able to change the x-rot by 180 (from straight up to straight down) using /tp @p ~ ~ ~ ~ ~180. (notice the ~, meaning "change by" not "set to") Try it, it doesn't work due to this bug.
I'm sorry to comment twice in a row, but no-one responded to my previous comment so i'm assuming either no one read it, or they didn't understand it. And i'm hoping for the latter.
What we are trying to do is go from looking straight up (-90.0°) to a little lower then level (1.0°) using relative teleportation. At no point in the command do we try to look in the direction -91.0°
As proof that this is a bug, try to use relative rotation to go from looking straight down to straight up. Remember that to rotate relatively in the x-axis (up-down) you use the command /tp @p ~ ~ ~ ~ ~<ammount to change x-rot by>
but no-one responded to my previous comment so i'm assuming either no one read it, or they didn't understand it.
Of course we did understand that, but there is nothing more to say.
May be intended.
Valid yaw angles are -90° (looking up) .. 0° (looking straight) .. 90° (looking down). An angle of -91° would either break your neck or turn you around and place you at -89°.