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:![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840106_screenshot_2016-08-22-09-23-021.png)
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.
![Code lock [Minecraft PE Guides] Code lock [Minecraft PE Guides]](http://en.planet-mc.net/wp-content/uploads/2016/08/1471840183_screenshot_2016-08-22-09-25-191-1.png.webp)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840069_screenshot_2016-08-22-09-23-221.png)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840111_screenshot_2016-08-22-09-23-321.png)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840081_screenshot_2016-08-22-09-24-061.png)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840105_screenshot_2016-08-22-09-24-571.png)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840077_screenshot_2016-08-22-09-25-141.png)
![Code Lock [Minecraft PE Guides] Code Lock [Minecraft PE Guides]](http://planet-mc.net/wp-content/uploads/2016/08/1471840183_screenshot_2016-08-22-09-25-191.png)