-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w08b, Minecraft 1.14, 1.14.4, 19w46b, 1.16 Pre-release 5, 1.16.2 Pre-release 1, 1.16.4, 20w49a, 20w51a, 1.16.5, 21w06a, 21w10a, 21w19a, 1.17.1, 21w39a, 21w42a, 21w44a, 1.18 Pre-release 1, 1.18.1, 1.18.2, 22w18a, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.20.4
-
None
-
Confirmed
-
Commands, Entities
-
Normal
-
Gameplay
The bug
When an entity randomly rotates, while standing on the same position, the server does not update the entity's rotation, causing the Rotation NBT and local coordinates to be inaccurate to what players see.
How to reproduce
- Summon a zombie
- Run this command in a repeating command block:
/execute at @e[type=zombie] anchored eyes run particle flame ^ ^ ^4 0 0 0 0 1
→ When the zombie randomly looks around without moving, the particle will stay in the same place, rather than move with the zombie's looking direction
Code analysis
Potential code analysis by Chumbanotz can be found in this comment.
- is duplicated by
-
MC-133332 Mobs must walk to update their facing direction
- Resolved
-
MC-135178 Mobs do not use correct rotational values in commands when idling
- Resolved
-
MC-197119 Entities don't change Rotation data when they are not moving
- Resolved
-
MC-225745 Rotation of mob
- Resolved
-
MC-268755 Piglins (all entities?) Rotaion isn't stored in NBT when looking at players
- Resolved
- relates to
-
MC-174846 Entities don't properly update their rotation unless they walk around
- Open
-
MC-236497 The head rotations of passengers in boats are not correctly displayed for other players
- Open