mojira.dev
MC-252155

Zombies and other similar mobs can get hurt when they move out from turtle eggs

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

Cam confirm in 1.19.3

Somgtimes I think, it's because the drop height doesn't reset to 0 while zombie jumping on the surface of turtle egg.

Does this also happen to the player?

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

KeqiaoNana

(Unassigned)

Confirmed

Gameplay

Low

Hitboxes, Mob behaviour

distance-fallen, fall-damage, turtle_egg

1.18.2, 1.19 Pre-release 2, 1.19, 1.19.2, 1.19.3 Pre-release 3, 1.19.3 Release Candidate 1, 1.19.3, 1.19.4, 1.20.1

Retrieved