-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 17w45b, Minecraft 17w50a, Minecraft 18w05a, Minecraft 18w11a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 19w07a, Minecraft 19w08b, 1.15.2, 20w21a, 1.16.4, 1.19.2
-
None
-
Windows 10, Bundled runtime (jre-x64\1.8.0_25)
-
Community Consensus
-
Commands
-
Low
-
Platform
Assuming a scoreboard objective rotation with type dummy, if the command execute as @a at @s store result score @s rotation run data get entity @s Rotation[0] is ran in an Always Active repeating command block, it is expected that the Vertical Rotation of each player will be set to their rotation score. This does occur, but it is inconsistent, ranging from -360 to 359
I believe this happens due to Rotation NBT not actually capping it's value, instead the value being given to rotation is the result of Rotation % 360 where % is modulus and Rotation >= 0. This isn't the worst thing, but the issue arises when Rotation NBT is negative and rotation then is given the value of Rotation % -360. Rotation NBT seems to not have a cap (and is inconsistent when being translated to rotation because if you continually rotate clockwise (angle is increasing), rotation will loop from 0 to 359. If you rotate from 0 to 720 (two full rotations), it then takes 2 rotations back (720 to 0) to begin getting a negative rotation score.
- is duplicated by
-
MC-122293 NBT Rotation of the player does not work as expected
- Resolved
-
MC-124827 Players rotation nbt value going out of the -180 to 180 range
- Resolved
-
MC-128096 Rotation displayed in f3 window is broken
- Resolved
-
MC-139127 x rotation stays negative when rotating to the left 720 degrees
- Resolved
-
MC-205931 Rotation value can go negative while still retaining the same absolute value
- Resolved
- relates to
-
MC-120545 Teleportation wraps rotation angles causing first-person hand to rotate incorrectly
- Open
-
MC-121673 Rotation selector arguments do not allow max to be lower than min
- Resolved
-
MC-251582 Y rotation from F3+C copy location is not bounded to -180..180
- Open