mojira.dev
MC-306510

Some mob types path to block edges differently

When a mob can’t path to a block it is wandering to and the closest location it can reach has a drop-off not all mobs stop with their hitbox aligned with the edge of the block.

To reproduce make a small platform a few blocks away from a large amount of blocks and spawn one of the mobs listed below and wait for it to try to path ro one of the blocks across the gap, for spiders I recommend placing the destination blocks higher up then the platform.

I would expect all mobs to stop with their hitbox aligned with the edge of the block as that is what the oldest mobs do.

Cave Spider and Spider will walk completely off the block edge and fall.

Camel, Camel Husk, Hoglin, Horse, Iron Golem, Mule, Panda, Ravager, Skeleton Horse, Sniffer, Turtle, Zoglin, and Zombie Horse all walk to an edge by putting their hitbox center at the block edge, I have seen them fall off of concave corners because of this.

Ender Mite & Silverfish don’t go all the way to the edge.

Slimes jump off edges but I assume that is unrelated as they have different pathing code.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Seth Carpenter

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved