Locked Repeater OR Gate Security System

This locked repeater circuit creates a deadbolt security system for your base's entrance. Normally, putting a button or lever on both sides of a door lets anyone open it from the outside, or causes one lever to override the other. By feeding a powered repeater into the side of your main input repeater, you can completely disable the outside button from inside your house.

Logic GatesBeginnerJava Edition
Locked Repeater OR Gate Security System video tutorial

Video: Minecraft - Simple use of locked diode! SECURITY SYSTEM!! (OR gate) by

How to build it

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Frequently asked questions

Why use a locked repeater instead of two levers?
In a standard OR gate using two levers, leaving one lever ON continuously powers the door, preventing the lever on the other side from closing or toggling it. A locked repeater lets you use buttons to enter and exit normally while giving you an override switch inside.
What happens if I flip the lock lever while the door is open?
Because a locked repeater freezes whatever state it is currently in, locking it while it is powered will hold the door permanently open. Make sure the outside button pulse has finished before engaging the lock.
Can I use a piston door instead of a standard door?
Yes. Simply run the output from the locked repeater into your piston door's trigger or T flip-flop input instead of an iron door.

Components used

More or gate