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 certain blockstates

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 whether its 'open' state has been set, villagers cannot open them and will get stuck in front of or behind door disallowing them to pathfind 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 pathfind 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 pathfind through the door by opening it. In the other two setups, the villager will get stuck behind the door unable to pathfind 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 pathfind.

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

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

              Created:
              Updated:
              CHK: