Lever Passcode Door

This 12-lever passcode door locks a double iron doorway behind a customizable combination of two rows of six levers. With over 4,000 possible combinations, the doors will only open when every single lever is in the exact right position—flicking even one wrong lever immediately shuts the doors. It is an ideal security mechanism for protecting vaults, secret rooms, and multiplayer bases.

Locks & SecurityIntermediateJava Edition
Lever Passcode Door video tutorial

Video: Lever Passcode Activated Door! - Minecraft Tutorial by

How to build it

  1. Build the 4x8 Input Wall

    Start at least 5 blocks off the ground so you have room to wire underneath. Build a 4-block-tall by 8-block-wide stone brick frame and fill the 2x6 hollow center with a contrasting block like cyan terracotta.

  2. Add the Double Iron Doorway

    On the left side of your wall, extend a stone brick frame outward to create a 2x2 doorway opening. Place two floor blocks (such as oak planks) at the bottom of the frame and install two iron doors.

  3. Install the 12 Levers and Set Your Code

    Place a lever on each of the 12 middle blocks on the front of the wall (two horizontal rows of six). Flick ON the levers you want to use as your password, and leave the rest pointing up (OFF).

  4. Place Rear Redstone Torches

    Go to the back of the wall and place a redstone torch directly behind each of the 12 lever blocks. Torches behind flicked levers will turn off, while torches behind un-flicked levers will stay lit.

  5. Place the 4 Rows of Lime Wool

    Use lime wool to mark the programmable password sections. Place a 6-block row directly on top of the upper row of torches, a second 6-block row diagonally down and back from the first, a third row diagonally down and back from the second, and a fourth row two blocks directly below the third.

  6. Place the 3 Rows of White Wool

    Use white wool for the permanent wiring that never changes. Place a 6-block row in front of the lowest lime wool row, a second 6-block row directly on top of the third diagonal lime row, and a third 6-block row tucked in between the two lowest lime rows one block back.

  7. Build the Door Wiring Platforms

    Between the white wool rows and the iron doors, build two small diagonal platforms of white wool, plus two white wool blocks positioned directly underneath the floor blocks holding the iron doors.

  8. Wire the Iron Doors

    Place two redstone torches on the white wool blocks directly beneath the door floor blocks. Leading into those blocks, place two redstone repeaters facing the doors, trailed by four redstone dust and an inward-facing redstone torch on the connecting white wool.

  9. Lay the Main Redstone Buses

    Run a line of 6 redstone dust across the top row of white wool and another line of 6 redstone dust across the bottom row of white wool. On the middle row of white wool (between the lower lime rows), place 6 redstone repeaters all facing toward the lime wool.

  10. Connect the Upper and Lower Buses

    At the door-side end of the white wool rows, place a redstone repeater facing forward into a white wool block, followed by two redstone dust trailing down to join the bottom white wool dust line. Place a redstone torch on the side of the bottom white wool row; never put a solid block directly above this torch or the circuit will short-circuit.

  11. Program the Top Row Password

    Look at which levers are flicked ON in your top row. Behind every ON lever, place a redstone repeater on the second row of lime wool facing the white wool in front of it. Behind every OFF lever in the top row, place a redstone torch on the first (highest) row of lime wool.

  12. Program the Bottom Row Password

    Check which levers are flicked ON in your bottom row. Behind every ON lever, place redstone dust on the bottom (fourth) row of lime wool. Behind every OFF lever in the bottom row, place a redstone torch on the third row of lime wool. Once placed, your iron doors will open!

How it works

This combination lock works as a large 12-input AND gate built around two redstone dust bus lines on the white wool:

  • Input Inversion: Every lever powers the block it is attached to, which turns OFF the redstone torch on the back of that block when flicked ON.
  • Top Row Logic: If a top lever is part of the code (ON), its rear torch is OFF, so a repeater on the second lime row lets the line stay unpowered unless the lever is wrongly turned OFF (which lights the rear torch and sends power through the repeater into the upper white wool dust line). If a top lever should be left OFF, its rear torch stays ON, holding a torch on the top lime row OFF—flicking that lever by mistake turns the rear torch OFF and lights the lime-row torch, powering the white wool bus.
  • Bottom Row Logic: The middle row of 6 repeaters on white wool constantly reads the bottom row of rear torches. For ON levers, redstone dust on the lowest lime row carries power to the bottom bus if the lever is left OFF. For OFF levers, a redstone torch on the third lime row stays inverted by the rear torch until someone flicks the lever ON.
  • Door Output: As long as any single lever is in the wrong state, power flows into the white wool redstone dust buses, holding the master inverter torch OFF and keeping the under-floor door torches in their closed state. Only when all 12 positions are quiet does the output invert and open both iron doors.

Tips & variations

  • How to Change Your Password: Flip all levers on the front wall to OFF, then flick ON your new combination. Go to the back, remove all repeaters, torches, and dust sitting on the lime wool (never touch the white wool components), and re-place them following the two rules:
    • Top row: Flicked (ON) = Repeater; Un-flicked (OFF) = Redstone Torch.
    • Bottom row: Flicked (ON) = Redstone Dust; Un-flicked (OFF) = Redstone Torch.
  • Avoid Torch Burnout: Do not place a solid block directly on top of the redstone torch at the right end of the bottom white wool row when hiding your wiring, or the circuit will loop into itself, burn out, and force the doors shut.
  • Expanding the Code: One section can be stretched up to 14 levers wide (28 levers total, giving over 268 million combinations) before the redstone dust reaches its 15-block signal limit. You can chain multiple 14-wide sections together by placing two redstone repeaters pointing toward the doors between each section.

Frequently asked questions

What is the easy rule for changing the lever password?
Only change components on the lime wool. On the top row, use a repeater for ON levers and a redstone torch for OFF levers. On the bottom row, use redstone dust for ON levers and a redstone torch for OFF levers.
Why did my doors close when I covered up the redstone?
You likely placed a solid block directly above the redstone torch on the side of the bottom white wool row. Leave an air block above that torch so it does not power the dust next to it and burn out.
How many levers can I add to this password door?
A single module can be expanded up to 14 levers wide (28 levers total across two rows). To make it even wider, add two repeaters facing the doors on the white wool bus lines after every 14 columns.

Components used

More password door