Mobs like zombies sometimes randomly change their pathfind direction in the opposite and then suddently change it back.
Linked issues
relates to 3
Attachments
Comments 15
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.
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.
That's MC-150293.
Can you provide more details? When does this happen, is it consistently reproduceable? Are there any villagers nearby?