Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-44621

Villagers can open and close iron doors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.13.0.1 Beta, 1.13.3, 1.13.1, 1.13.0.9 Beta, 1.13.0.5 Beta, 1.12.0.11 Beta, 1.11.0.10 Beta, 1.11.0, 1.11.1, 1.11.4, 1.13.0.2 Beta, 1.12.1, 1.12.0, 1.14.30 Hotfix, 1.14.60 Hotfix
    • None
    • Confirmed
    • Multiple
    • 191630

      I was working on defenses for my artificial village (that I built by myself and got some villagers), the defences consisted of iron doors (in front of the wooden doors) that closes during night, or can be manually closed during raids. But villagers, when they go in or out through an open iron door,they close it behind, despite having the door powered by a redstone signal.

       This needs fix a fast as possible because it is ruining the defence.

      Additional information from Auldrick:

      This bug has been fixed in the 1.16.0.51 Beta version. It should become fixed for everyone in the next release version. (No specific date can be given.)
      Please limit any further comments to reporting that this bug is still present in 1.16.0.51 or later Beta version.

      Workaround:

      You should be able to avoid this problem as follows: Immediately outside the door, create a short corridor along the wall that the door is embedded in. The corridor should be at least 3 blocks long and can extend in either direction, or both directions if you like. On each block within the corridor, place a button. Make sure that when the door is open, every floor block that can be seen from a villager's perspective has a button on it. The following screenshots show what I mean:

      The reason this works is that villagers cannot pathfind over or through a block with a button in it. What's happening is that when a player opens an iron door, nearby villagers can see surface blocks outside the door. If a villager is looking at the player (which they do all the time, to signal their willingness to trade when they're close by) and happens to also be looking for somewhere to wander to, there's a high probability it will choose a block outside the door as its target. Once that happens, it will start pathfinding toward that block, and it will open and close any doors it encounters on the way. (The bug is that it shouldn't be able to open an iron door, but opening wooden doors is intended behavior.) But a villager can't target a block with a button on it, so this technique ensures it never chooses a target block outside the door. In fact, you wouldn't even need the door any more, except that crowded villagers can nudge each other onto a block with a button in it, and they could eventually escape that way or become stuck there.

        1. VillagerIronDoorBug.mp4
          3.27 MB
        2. VillagerDoorBug.mp4
          8.74 MB
        3. Minecraft 2019.11.06 - 15.37.52.05.DVR_Trim.mp4
          8.61 MB
        4. Buttons2.png
          Buttons2.png
          630 kB
        5. Buttons1.png
          Buttons1.png
          584 kB

            The dangers16 Thedangers16
            Votes:
            49 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: