
Video: Minecraft - Simple use of locked diode! SECURITY SYSTEM!! (OR gate) by
How to build it
- Place the Door and Outside Button
Set up your door in your base wall and place a button on the outside wall nearby. Instead of placing the button directly adjacent to the door, offset it by a couple of blocks so its signal must travel through a redstone line first.
- Wire the Outside Input Line
Run a trail of redstone dust from behind the outside button toward the door. Place a redstone repeater along this path facing toward the door, then continue the dust line from the front of the repeater to power the door.
- Install the Locking Repeater
Place a second redstone repeater directly adjacent to the first one, oriented at a 90-degree angle so its output points directly into the side of the first repeater.
- Connect the Inside Lock Lever
Mount a lever on the inside wall of your base to act as the deadbolt switch. Run redstone dust from the block behind this lever into the back of the second (side-facing) repeater.
- Add an Inside Exit Button
Place an additional button on the inside wall right next to the door (or wired into the line after the locked repeater) so you can always open the door to leave from the inside.
- Test the Deadbolt
Flip the inside lever ON so the side repeater powers the main repeater, creating a bedrock-textured lock bar across it. Press the outside button to verify that the signal is blocked and the door stays shut.
How it works
This security circuit relies on the repeater locking mechanic rather than a traditional two-lever OR gate:
- Unlocked State: When the inside lever is turned OFF, the locking repeater is unpowered. Pressing the outside button sends a pulse through the redstone dust and straight through the main repeater to open the door.
- Locked State: When you flip the inside lever ON, it powers the second repeater pointing into the side of the main repeater. A bedrock-patterned bar appears on the main repeater, locking its current state (unpowered/off).
- Blocking Intruders: While locked in the off state, the main repeater refuses to accept or pass any redstone signal coming from the outside button, making the exterior switch completely dead until the inside lever is turned off again.
Tips & variations
- Protect Your Wiring: Be sure the outside button is not directly adjacent to the door block, otherwise the button will power the door directly and bypass the locked repeater line.
- Button Types: Both stone and wooden buttons work for the inputs, though stone buttons give a shorter pulse which closes the door behind you quicker.
- Multiplayer Servers: This setup is especially handy on servers with land protection or Factions plugins where intruders cannot break walls, preventing them from using unprotected exterior buttons to sneak in while you are inside your base.
- Edition Compatibility: Repeater locking works identically in both Java Edition and Bedrock Edition.
