
Video: Compact Item Frame Combination Lock. by Mumbo Jumbo
How to build it
- Build the 3x3 Display Wall
Clear a 7x5 area for the circuit. At the front center, build a 3x3 vertical wall raised one block off the ground, place an item frame on each of the four corner blocks, and put an arrow inside each frame.
- Place the Frame Comparators
Behind each of the four corner blocks holding an item frame, place a solid support block and a redstone comparator facing away from the wall to read the frame's rotation. set all four of these comparators to subtract mode (front torch lit).
- Add the Reference Hoppers
Extend two blocks out to the side of each subtract-mode comparator. Place a hopper on the outer block and a second comparator facing into the side of the first comparator so it subtracts the hopper's signal from the item frame's signal.
- Wire the Upper and Lower Outputs
In front of each of the two top subtract comparators, place a block with redstone dust leading into a repeater. Having that repeater power a downward-facing sticky piston holding a solid block on its face.
- Connect the Bottom Dials
In front of each bottom subtract comparator, place a block with redstone dust and a repeater running forward toward the space beneath the top sticky piston's block. When the top piston extends, its block will sit directly in front of this bottom repeater.
- Add the Over-Rotation Cutoffs
Extend a block outward from the redstone dust of both the top and bottom comparator outputs on each side and place redstone dust on them. Next to the outer dust, place a sticky piston with a block on its face and a regular piston directly on top of that sticky piston.
- Wire the Side Torches
Run a line of blocks and redstone dust down from the piston AND gate on each side into a block holding a redstone torch on top. This torch turns off only when both the top and bottom dials on that side are set to the exact combination.
- Build the Final Output AND Gate
From both side redstone torches, run redstone dust and a repeater inward into a central block with a final redstone torch attached. This center torch is your lock output and will turn on only when all four item frames match the code.
- Program Your Combination
Fill each of the four hoppers with standard 64-stackable items according to the desired arrow position (Position 1 = 0 items, Pos 2 = 22, Pos 3 = 45, Pos 4 = 64+4, Pos 5 = 64+27, Pos 6 = 64+50, Pos 7 = 64+64+9, Pos 8 = 64+64+10).
How it works
An item frame containing an item emits a comparator signal strength from 1 to 8 depending onwhich of the 8 rotation steps it is set to. Each dial uses two thresholds to check that the signal is neither too low nor too high:
- Minimum Signal Check (Subtraction): The comparator behind the item frame is set to subtract mode. A second comparator reads the programmed hopper (signal strength 0 to 7) into its side. Until the item frame reaches the target position, the hopper's signal is equal to or greater than the frame's signal, yielding an output of
0. At the target rotation, the subtracted output becomes1, powering the first redstone dust. - Maximum Signal Check (Over-Rotation Cutoff): If you rotate the arrow one click past the correct position, the subtracted signal increases to
2. The second dust tile now receives power and activates the side piston cutoff (the sticky piston and regular piston pair), breaking the connection so higher positions fail. - Piston AND Gates: On both the left and right halves, the top dial extends a sticky piston to push a solid block in front of the bottom dial's repeater. Signal only passes through to invert the side redstone torch when both the top and bottom dials output a signal strength of exactly
1. Finally, both side torches feed into a central NOR/AND torch that unlocks your door or indicator lamp.
Tips & variations
- Hopper Item Chart (64-stackable items):
- Position 1: 0 items
- Position 2: 22 items
- Position 3: 45 items
- Position 4: 68 items (1 stack + 4)
- Position 5: 91 items (1 stack + 27)
- Position 6: 114 items (1 stack + 50)
- Position 7: 137 items (2 stacks + 9)
- Position 8: 138 items (2 stacks + 10)
- Expanding the Lock: One 4-dial module provides 4,096 combinations (
8^4). Linking two modules together into the same final AND gate gives 16.8 million combinations (8^8). - Common Mistake: Make sure all four primary comparators directly behind the item frames have their front torch turned on (subtract mode). If left in compare mode, higher signal strengths will pass straight through without stepping down to 1.





