mojira.dev
MC-163410

Mobs sometimes spin while pathfinding

Mobs like zombies sometimes randomly change their pathfind direction in the opposite and then suddently change it back.

Linked issues

Attachments

Comments 15

Can you provide more details? When does this happen, is it consistently reproduceable? Are there any villagers nearby?

I made a short clip, which shows what i mean. Same thing sometimes happens to villagers. Another problem is that mobs sometimes won´t attack you, even if you stand in directly front of them. The superflat world was generated without villages and there were no other villagers in this world.

I've seen Iron Golems spin in place as well.

Daniel Chýlek

Reproduced in 1.15.2.

The easiest way to reproduce this is to spawn one or more cows in superflat, hold wheat, and walk backwards in a straight line or at a slight angle. You should see the mob suddenly rotate, or even spin in place every few seconds.

Remarks:

  • More entities = higher chance of it occurring, possibly because they push each other, but it still happens with just 1 mob.

  • It seems to depend on the mob width. It doesn't seem to happen with chickens, but large mobs (cows, pigs) trigger the bug more often. Also reproducible with for ex. creepers, but you may have to strafe around the mob instead of walking straight.

 

Still in 20w15a. Pathfinding fixes didn't fix it, but it seems to happen a bit less often.

5 more comments

Can confirm in 1.17.1.

nitrodynamite18

I see this happen most often on Scaffolding.

plumparrot71568

Relates to MC-150293MC-226637, and MC-198380.

thewolfpackmc000

i have this bug...

LaserSlimeHD

(Unassigned)

Confirmed

Platform

Low

Mob behaviour

ai, entities, pathfinding

1.14.4, 19w41a, 1.15 Pre-release 1, 1.15.2, 20w12a, ..., 20w17a, 20w51a, 1.17, 1.17.1, 23w12a

Retrieved