There are noticeable issues with entity Yaw rotation updates in specific scenarios. These problems are not visible in the entity's model but are evident in its behavior when using commands to track its rotation. Below are the identified issues along with steps to reproduce them and the expected vs. actual results.
Issue 1: Entity Yaw Not Updating When Stationary or on a Single Block, Even with Visual Rotation Changes
Steps to Reproduce:
1. Place a command block with the following command:
execute at @e[type=sheep] run particle minecraft:bleach ^^0.6^2
2. Spawn a sheep on a single block elevated above the ground.
3. Observe the particle behavior relative to the sheep’s rotation.
4. Force the sheep to look at a player using a method such as /tp or /execute.
Expected Results:
The particles should update their position in real-time based on the sheep’s rotation.
Observed Results:
The particles remain static and do not reflect the sheep's updated rotation unless the sheep moves. The Yaw rotation only updates when the entity is in motion.
Issue 2: A parrot's rotation does not update while riding a player.
Steps to Reproduce:
1. Place a command block with the following command:
execute at @e[type=parrot] run particle minecraft:bleach ^^0.6^2
2. Spawn a parrot and make it ride a player (using /ride or equivalent methods).
3. Rotate the player and observe the particle behavior.
Expected Results:
The particles should reflect the parrot’s actual rotation as it aligns with the player's movement.
Observed Results:
The particles spawn in a fixed position relative to the parrot, not reflecting the actual rotation of the parrot while riding the player.
Issue 3: Entities' yaw rotation does not update while riding a boat or even while riding other entities.
Steps to Reproduce:
1. Place a command block with the following command:
execute at @e[type=sheep] run particle minecraft:bleach ^^0.6^2
2. Spawn a sheep in a boat.
3. Observe the particle behavior when the boat changes direction or the sheep is forced to look at a player.
Expected Results:
The particles should always spawn in front of the sheep based on its current rotation.
Observed Results:
The particles appear in incorrect positions. Changing the boat’s direction or forcing the sheep to look at a player sometimes results in inconsistent or incorrect particle positions.
Issue 4: Entities do not update their rotation quickly, causing them to deviate from their path when moving at high speed.
Steps to Reproduce:
1. Place two command blocks with the following commands:
execute at @e[type=sheep] run particle minecraft:bleach ^^0.6^2
effect @e[type=sheep] speed 20 20 true
2. Spawn a sheep and make it follow the player.
3. Observe the sheep's movement and particle behavior.
Expected Results:
The sheep should rotate correctly while following the player, and the particles should align with the correct rotation.
Observed Results:
The sheep’s Yaw rotation occasionally updates incorrectly, causing it to deviate unexpectedly from its path. The particle position reflects this incorrect rotation.
Root Cause:
The Yaw rotation values of entities are not updating correctly in certain situations, leading to mismatches between visual rotation and actual rotation values. This causes unexpected behavior when rotation-dependent commands or mechanics are used.