mojira.dev
MC-156228

Mobs don't pathfind towards targets correctly if they're not centered on a block

When mobs have a clear way to pathfind to their target, they will change direction if the target is not centered on the block, tricking the AI into thinking the target is floating. To reproduce, build a staircase, spawn some husks, go into survival, and you will be safe if you're sneaking on an edge.

Linked issues

Attachments

Comments 3

Cannot reproduce in 20w18a. Is this still an issue for you in the latest snapshot?

I found it easier to reproduce over the void in the end, it works for most mobs

Can confirm in 1.17.1 Release Candidate 1.

gaspoweredpick

(Unassigned)

Community Consensus

Mob behaviour

Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 3, 1.14.4, 20w18a, ..., 1.20.4, 1.21, 1.21.3, 1.21.4, 1.21.5

Retrieved