
Video: Item Frame Combo Lock -- Minecraft Tutorial by SethBling
How to build it
- Build the Wall and Mount Item Frames
Construct a wall at least 7 blocks wide and place three item frames on the front face, leaving at least one empty block of space between each frame. Place an item—such as a redstone torch or arrow—into each of the three frames.
- Place the Comparators
Go behind the wall and place a solid block directly behind the wall block holding each item frame. Place a redstone comparator on top of these blocks facing away from the wall so they immediately light up and read the frames.
- Set Your Secret Combination
Return to the front of the wall and right-click the items in the frames to rotate them into the exact positions you want for your secret password. Each of the 8 rotational positions outputs a corresponding redstone signal strength from 1 to 8.
- Measure the Signal Strength Lines
Behind each comparator, build a straight line of green blocks extending outward and place redstone dust along the top. Keep extending the line and placing dust until the redstone signal runs out, then break any extra blocks where the dust is completely unlit (check for a lack of redstone particles).
- Add the Overflow Block
At the very end of each lit green line, place one red block to represent the first unpowered spot. Place a piece of redstone dust on top of each red block.
- Install the Low-Signal Torches
Attach a redstone torch to the side of the very last green block in each of the three rows. Because your item frames are currently set to the correct combination, that last green block is powered, which keeps this torch turned off.
- Install the High-Signal Repeaters
Place a solid block next to the red block on the same side as your redstone torch, and put a redstone repeater on it facing away from the wall (taking output from the red block). Place one more block in front of the repeater with redstone dust on top to connect it with the torch output.
- Wire the Outputs Together
Run a line of blocks and redstone dust underneath the three redstone torches to merge all three decoder outputs into a single main redstone line. Add a redstone repeater along this main wire if the path to your door exceeds 15 blocks.
- Install the Sideways Door
Route the combined redstone line to the block next to your doorway. Stand inside the doorway facing perpendicular to the passage and place your iron door so that its default 'closed' state visually blocks the entrance when powered, and swings open when all three outputs turn off.
How it works
This combination lock works by checking if each item frame is outputting an exact redstone signal strength between 1 and 8:
- Reading the Frame: A
redstone-comparatorplaced behind a wall with an item frame reads its state. An empty frame outputs 0, inserting an item outputs 1, and each 45-degree rotation adds 1 to the signal strength up to a maximum of 8. - Too Low Check: The green blocks match the exact length of your target signal strength. If the frame isn't rotated far enough, the signal falls short of the final green block. The
redstone-torchon its side turns ON, powering the final lock line. - Too High Check: If the frame is rotated past the correct position, the signal travels one block further onto the red block. This powers the adjacent
redstone-repeater, which also turns ON the final lock line. - NOR Gate Output: Only when all three item frames match their exact target lengths will both the torches and repeaters remain OFF. Because the door is placed sideways, an unpowered line leaves the doorway open, while any active signal from an incorrect dial powers the door shut.
Tips & variations
- Check for Particles: Signal strength 1 redstone dust looks very similar to unpowered dust. Watch closely for floating redstone particles to verify where the powered line actually ends when building your green rows.
- Scaling Security: Each dial has 8 positions. A 3-dial lock has 512 combinations (8x8x8). Adding a 4th item frame increases this to 4,096 combinations, and a 5th yields 32,768 combinations.
- Door Alternative: If you prefer not to place the door sideways, place the iron door normally and invert the final redstone wire using one extra redstone torch right before the door block.
- Edition Note: Reading item frames through walls with comparators and using pure signal-strength dust lines works identically in both modern Java and Bedrock editions.



