mojira.dev
MC-142817

Villagers and mobs try to pathfind through corners

The bug

Mobs try to pathfind through corners, if there is an air block behind the corner. This seems to affect all mobs, including passive mobs such as villagers.

To reproduce

  1. Build a diagonal wall that mobs could theoretically walk around

  2. Behind that wall, build a pillar

  3. Climb on that pillar

  4. Switch to Survival mode

  5. Spawn a zombie on the other side of the wall

Video

[media]

Original description

Sorry, I am creating this bug again because MC-142516 was resolved as a duplicate of a non-related bug.

"Zombies, Creepers, Skeletons are all behaving like they have no AI for pathfinding at all. In bamboo forests or inside mineshafts they are unable to get around a corner (or double corner), just to reach me. Instead they are searching for the shortest direct path and get stuck."

All mobs are generally moving and are following me. They have also seen me, I usually hit them first and run just 5 blocks away. All the mobs in the picture have seen me, followed, but then stayed where you can see them. They just have no clue how to get around.

Linked issues

MC-10836 In ocean biomes there are random air pockets in the water. They vary in size. Resolved MC-145129 NPCs get stuck between blocks and fences Resolved MC-147556 house design gets villagers killed Resolved MC-147899 Villagers have difficulty pathfinding to bed or workstations Resolved MC-148111 Villager getting stuck on diagonal structures Resolved

Attachments

Comments 29

I added some more pictures of mobs not following anymore if they reach bamboo.

Jacob Andrew Jagiella

If I remember correctly, this is a feature of the AI appearing when it's not supposed to. Ordinarily, when the AI cannot create a path from the monster to its target, it will attempt to simply get as close as possible without entering a hazard. However, in these cases, the monster clearly has a very short path to follow but is prevented from following the path. This definitely relates to my MC-142964, except manifesting in a comically more severe way. In fact let me test this...

 

Well, part of your error is something more obvious - mobs path through Bamboo like they would tall grass; they ignore it entirely.

[Mod] violine1101

Confirmed in 19w12b. I edited the ticket a bit (I hope you're fine with that, OP) and attached a video showcasing this bug.

[Mod] violine1101

This behaviour can also be observed with villagers in snowy tundra villages. They try to get in and out of their igloos by going through their corners.

Still in 19w13a

19 more comments

It’s an issue in bedrock Edition too. Villager path finding is awful. Forget about building two story buildings  because Villagers can barely find themselves in a house. They also don’t respond to the bell sometimes. I don’t know if I should create a separate report because there are several issues. I sometimes wish that they never change the formula from doors to beds.

[Mod] violine1101

This section of the bug tracker is for Java Edition only. For Bedrock Edition, please visit the MCPE project.

This bug is back again in 19w36a, but may be only when doing certain AI tasks.  I've seen a villager path-find into a pair of diagonal fence posts while heading to work.  but seem to avoid doing so when doing other things.

[Mod] violine1101

@unknown, if so, please create a new ticket (and link to this ticket in the description).

Sorry about that.  Though, the bug seems to be different this time around so I've created a ticket for a "different" bug; one regarding villagers path-finding to work (and possibly other targets as well).  Because this time around it might just be them path-finding straight to the target as opposed to path-finding thru corners.
MC-160582

Third Eye

migrated

Confirmed

Mob behaviour

Minecraft 19w03c, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 5, Minecraft 1.14

Minecraft 1.14.1 Pre-Release 1

Retrieved