Entities rotating their heads while idle is client side only
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.
2019-01-03, 03:16 PM
2024-12-28, 01:12 PM
20
10
Minecraft 1.13-pre7 - 1.21.4
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, 1.21.4
-