This guide is designed for enthusiasts of mechanisms. Here, I will introduce you to a mechanism known as the code lock in Minecraft: Pocket Edition.
You will need:
- Levers
- Repeaters
- A door
- Redstone
- Solid blocks
The amount of resources required depends on how many levers your lock will have. I will be constructing a lock with 5 levers.
Let’s start by building the base:
Next, we set our desired combination on the levers. I chose the following:
According to the position of the levers, place a red torch on the lever facing downwards and connect repeaters from the levers that are pointing upwards:
Now, let’s connect the signal to the door like this:
Enter the correct combination and test it:
You can install as many levers as you want in your house using this method.