mojira.dev
MC-278842

Villagers can get stuck in front of or behind doors with certain block states

Depending on how a door is placed and what its 'open' state is set to, villagers cannot open it and get stuck in front of or behind it, disallowing them from path-finding properly.
This is likely because they check the door's block state literally and do not regard how the door was actually placed.

Steps to Reproduce:

  1. Recreate a setup like this:

    [media]
  2. Place doors over the wool using the same camera angle as shown in the screenshots

    1. Green door:

      [media]
    2. Red door ('open' the door after placing it):

      [media]
    3. Blue door:

      [media]
  3. Place 3 work stations outside of the enclosure, or 3 beds at night

  4. Summon a villager in each space behind the enclosed doors

Expected Result:

The villager would be able to path-find past the door by either opening it, or walking through it if the door already has proper clearance for the villager to walk through.

Observed Behavior:

Only in the last setup (the door over the blue wool) will the villager be able to path-find through the door by opening it. In the other two setups, the villager will get stuck behind the door unable to path-find properly. In some cases, the villager will spam opening and closing the door.

Screenshots/Videos:

[media]

Notes:

This issue is very similar to MC-256129 and may even be the cause of it, but was reported separately as I did not feel MC-256129 adequately covered this behavior.
The other report focuses on villagers not closing doors when avoiding other mobs, whereas this report covers villagers getting stuck, being unable to path-find.

Linked issues

Attachments

Comments 2

Can confirm.

Can confirm in 1.21.6
Quite an interesting bug, at first I thought it wouldn't work :)

[Mod] Jingy

(Unassigned)

Community Consensus

Platform

Normal

Mob behaviour

1.21.4, 1.21.6

Retrieved