Mojira Archive
MC-124827

Players rotation nbt value going out of the -180 to 180 range

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.

Duplicate

Ryan Taylor

2018-02-05, 10:15 PM

2020-09-15, 06:27 PM

2020-09-15, 06:27 PM

2

6

Confirmed

(Unassigned)

Minecraft 18w05a - 20w21aMinecraft 18w05a, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, 1.15.2, 20w21a

-