The Bug
Zombies (and some of other mobs) will moving on turtle eggs and jumping when they found them. When they're jumping, if they move out from turtle eggs such as pushed down by others, they'll hurt.
Reproduce
Place some turtle eggs
Spawn a few zombies
Watch them
Observed Result
Some zombies took damage
Expected Result
The zombies wouldn't take damage
Attachments
Comments 5
Somgtimes I think, it's because the drop height doesn't reset to 0 while zombie jumping on the surface of turtle egg.
No. This is due to the AI of zombies. When destorying a turtle egg, the Y motion of the zombie shifts between -0.3 and 0.3 unreasonably frequently (every tick). During this, the zombie floats in the air and doesn't land at all, which causes its fallDistance to constantly increase. Its fallDistance is reset to 1 at the end of ai goal, so it doesn't get hurt when there's only one zombie. But when the zombie is pushed away from the turtle egg, ai goal doesn't stop and fallDistance doesn't reset, so it gets hurt.
Distance-fallen problem, so it may ralates to MC-112133
Cam confirm in 1.19.3