Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-278842

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.4
    • None
    • Community Consensus
    • Mob behaviour
    • Normal
    • Platform

      Depending on how a door is placed and what it's 'open' state has been 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 very literally and do not regard how the door was placed.

      Steps to Reproduce:

      1. Recreate a setup like this:
      2. Place doors over the wool using the same camera angle as shown in the screenshots
        1. Green door:
        2. Red door ('open' the door after placing it):
        3. Blue door:
      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:

      2024-12-11_12-36-06.mp4

      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.

        1. 2024-12-11_12.43.37.png
          2024-12-11_12.43.37.png
          411 kB
        2. 2024-12-11_12.43.53.png
          2024-12-11_12.43.53.png
          581 kB
        3. 2024-12-11_12.44.05.png
          2024-12-11_12.44.05.png
          587 kB
        4. 2024-12-11_12.44.14.png
          2024-12-11_12.44.14.png
          716 kB
        5. 2024-12-11_12-36-06.mp4
          1.23 MB

            Unassigned Unassigned
            Jingy [Mod] Jiingy
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: