🔐 FERMO CUBE GUIDE · REDSTONE
Secret code door
Four levers on the wall, an iron door next to them: it only opens if the right levers are down and the others are up. There are 16 possible combinations, and only one opens the door. You can change the code whenever you like.
Java: mechanics verified Bedrock: mechanics verified Difficulty: medium📦 Materials needed
Tick the materials as you get them ready.
0 / 5 materials ready
These amounts match the code in this guide (levers A0, A4 and A6 down, lever A2 up). Take 1 or 2 extra redstone torches and redstone dust if you want to change the code later. Use full blocks like stone: a torch attached to glass or a slab can't turn off.
🧭 How to read this guide
The wall is in row B, from column 0 to column 10, with the door in B9. Row A is outside: that's where visitors see the 4 levers. Rows C and D are inside: that's where the circuit hides. Layer 0 is your ground, and the whole circuit sits on layer 1.
A lever attached to the side of a block is down when it's on, and up when it's off.
🏗️ Building steps
In row B, place stone blocks from B0 to B10 on 3 layers (1, 2 and 3), leaving a hole 2 blocks high in B9 (layers 1 and 2). You need 31 blocks.
Aim at the ground in hole B9 and place the iron door: it takes up layers 1 and 2. It stays closed, because it never opens by hand.
On the outside, attach a lever to the face of blocks B0, B2, B4 and B6, layer 1 (they go in A0, A2, A4 and A6). Leave them all up for now.
Behind each lever, on the inside, you choose whether it must be down or up. For the code in this guide: attach a redstone torch to the inner face of B0, B4 and B6 (they go in C0, C4 and C6), and place one redstone dust on the ground in C2.
Place redstone dust on the ground from D0 to D8 (9 dust), in a straight line. It touches the torches and the dust in row C.
Place a stone block in D9, at the end of the line: the dust in D8 points straight into it. Attach a redstone torch to the face of this block that looks towards the wall: it goes in C9, right in front of the door, on the inside. You can walk through a torch without any problem (to get in, go around block D9 via C10).
All levers up: the door stays closed. Pull down levers A0, A4 and A6, and leave A2 up: the door opens. Pull down A2 as well: it closes again. Only one combination out of 16 works.
🧱 Layer-by-layer diagrams
Top view, from the lowest layer to the highest. Hover over a square to see the block name.
Layer 1
The levers outside, the bottom of the wall and door, and the whole circuit inside.
Layer 2
The middle of the wall and the top of the door.
Layer 3
The top of the wall, above the door.
Side view (column 0)
From left to right: the lever outside (A), the wall (B), the code torch (C), the redstone line (D).
Side view (column 9)
From left to right: outside (A), the door (B), the torch that opens it (C), its stone block (D).
🔑 Changing the code
The code is set inside, on the row C square behind each lever (C0, C2, C4 or C6). You have 3 choices for each lever:
Redstone torch attached to the wall block: this lever must be down.
Redstone dust on the ground: this lever must be up.
Empty square: this lever does nothing, it's a decoy to fool curious visitors.
Example: so that only A2 and A6 must be down, put torches in C2 and C6, and dust in C0 and C4. Change the code while the door is closed, and keep it secret!
🔍 Why it works
1. A lever that is on strongly powers the block it is attached to.
2. A redstone torch attached to that block turns off when the block is powered (it's an inverter). Dust placed against that block, on the other hand, turns on.
3. Everything leads to the same redstone line (row D). A single mistake is enough to turn it on: a "must be down" lever still up (its torch stays lit), or a "must stay up" lever pulled down (its dust turns on).
4. At the end of the line, the dust points straight into block D9 and powers it. Torch C9, attached to this block, does the opposite: line on, torch off, door closed. Line off, the torch lights up and opens door B9, which it touches. Dust D8 is only diagonal to the torch, and block D9 is 2 squares away from the door: nothing gets mixed up.
Result: the door only opens if all the levers are in the right position. It's an AND logic gate, built with torches.
⚙️ Information
Reference version: Java 26.3 and Bedrock 26.66 (rules checked on the official wiki in November 2026)
Type: Redstone circuit (AND logic gate with inverters)
Size: 11 × 4 blocks, 3 blocks high
Java Edition: Mechanics verified
Bedrock Edition: Mechanics verified
The circuit is the same on Java and Bedrock. On Java, don't flip the levers very fast several times in a row: a torch that turns off more than 8 times in 3 seconds "burns out" and stays off for a while. On Bedrock, these torches don't burn out. Careful: someone who breaks the wall can see your circuit. To hide it, build it inside a closed room.