How do I make a simple Redstone Door with a lever that villagers can't go through?

How do I make a simple Redstone Door with a lever that villagers can't go through? -

I am making a castle in Minecraft, but I want a door that villagers can't enter. So, I decided to make a Redstone door but everything I looked up on Google seemed too complicated.

What's the simplest Redstone door that villagers can't go through?



Best Answer

The most simple door that a villager cannot go through is an iron door powered by a button. If you need to use levers, you will need to build a simple XOR Gate.

Buttons

You will need:

Put down the iron door and place a button on an adjacent block to the door on both sides. When you press the button the door will open momentarily, with just enough time to walk through.

enter image description here

Levers (XOR Gate)

An XOR Gate is relatively simple to make, and allows you to open the door using levers on both sides of the door. I am using XOR Gate Design D from the wiki.

You will need:

The XOR gate is useful for controlling a mechanism from multiple locations. When controls (such as levers) are combined in an XOR gate, toggling any control will toggle the XOR gate's output.

In our case, the output the XOR Gate is toggling is the iron door.

enter image description here

I chose this design because it is compact and simple (doesn't involve repeaters or pistons), but there are other XOR Gate options to choose from if this one doesn't suit your needs.


With both of these methods you can open and close the door by flipping the lever or pressing the button. Villagers cannot get through becuase they cant interact with buttons or levers.

Quote from the "Door" page on the wiki:

Since villagers cannot operate buttons or levers and zombies cannot break them, iron doors can be used to lock a house in a generated village.




Pictures about "How do I make a simple Redstone Door with a lever that villagers can't go through?"

How do I make a simple Redstone Door with a lever that villagers can't go through? - From above of young light green coconuts in fabric basket next to old wooden stool in daytime
How do I make a simple Redstone Door with a lever that villagers can't go through? - Interior of modern office lounge zone with sofa and armchair with table near window next to TV on wall and neon signboard with text do what you love near door
How do I make a simple Redstone Door with a lever that villagers can't go through? - Dining room with table and near open plan kitchen



Can villagers interact with levers?

Can Villagers Open Iron Doors in Minecraft? Using an iron door is the only way to make sure you can keep villagers out of buildings. Any Redstone mechanism used to keep the door locked will solve the problem of villagers wandering around where they shouldn't. Villagers can't use buttons or levers to open an iron door.



Super Simple LOCKABLE DOOR! - Minecraft Tutorial




More answers regarding how do I make a simple Redstone Door with a lever that villagers can't go through?

Answer 2

you can use the commands /replace and /fill to make a neat door. just connect a button to a command block that puts an huge iron wall open/close by making an XOR gate with a command block on one side that fills the gate and another that replaces it with air. It is very simple if you follow the steps carefully.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Geometric Photography, Evgenia Basyrova, Max Vakhtbovych, Max Vakhtbovych