mojira.dev
MCPE-44621

Villagers can open and close iron doors

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:

[media]

[media]

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.

Linked issues

BDS-5471 A villager Resolved BDS-5862 Villagers open Iron doors Resolved MCPE-45225 Villagers are still capable of closing iron doors Resolved MCPE-45410 Villagers can open and close iron doors Resolved MCPE-45491 Villagers can open and close iron doors if pathfinded through them while opened by redstone Resolved

Attachments

Comments 55

[media][media][media][media][media]

Emm what did you mean by resolved, I haven't seem an update?

It was resolved in the 1.12 Beta, but the fix has not yet reached the regular release. I am reopening this ticket until then.

It was resolved in the 1.12 Beta, but the fix has not yet reached the regular release. I am reopening this ticket until then.

This happens in 1.11.1, but not only can villagers close iron doors, they can open them too. It seems to happen only for a few seconds after the player opens it. I believe what's happening is that villagers normally can't pathfind to a block through a closed iron door so it normally has no reason to open the door. But if anything opens an iron door while a villager is nearby, it can target a block on the other side, and once it has established a path it can open the door the same as it would a wooden door.

My experiments indicate that a villager will close any open door it is standing beside after it goes through it, and even if it doesn't intend to go through it. This is probably a side effect of the fix for MCPE-41170.

45 more comments

Its annoying seeing villagers opening iron doors

Update your Minecraft. This issue has been fixed for a while

Update your Minecraft. This issue has been fixed for a while

If this still occurs then create another ticket

If this still occurs then create another ticket

The dangers16

(Unassigned)

191630

Confirmed

Multiple

Android 7.1.1

1.13.0.1 Beta, 1.13.3, 1.13.1, 1.13.0.9 Beta, 1.13.0.5 Beta, ..., 1.13.0.2 Beta, 1.12.1, 1.12.0, 1.14.30 Hotfix, 1.14.60 Hotfix

1.16.0.51 Beta, 1.12.0.2 Beta, 1.16.0

Retrieved