If you want to protect your home from monsters and intruders, here's how to use red dust to create a castle in Minecraft. We will create some red dust levers and use them to build a combination lock.
Steps

Step 1. Install the first piece of the lock
This will be a door - wood or iron. You will also need a button and 2 plates. The button will turn on the electric current with which the door will open. A sign will tell guests how to open the door.
Be careful when activating the device. The button or lever must be at least 1 block away from the door. Otherwise, the door will not be opened with the help of combinations, but with the help of the button itself

Step 2. Select the number of levers that will make up your combination, that is, your code
Space the levers 1 block apart.

Step 3. Place red torches on the back of each lever block
This will allow you to generate code. Do not place red torches on all sides and on extra blocks. The levers on the red torch unit must be in the lowered position and the surrounding levers must be in the raised position for the door to open. Suppose you have put levers 2 and 3 in the down position.

Step 4. In the middle part of the scheme, you need to put an identification device - an authenticator
Each growl must be connected to it. Remember that the button does not need to be connected to an authenticator. Place a red torch on it.
When all levers are switched to a position that disconnects all connected red wires to the authenticator, the red torch connected to the authenticator sends a signal to an element called an i-cell. In this step, you need to remove all signs of the internal parts of the electrical circuit

Step 5. Create an i-cell when you connect the authenticator
An I-cell allows two signals connected to it to turn off 2 red torches. This will turn on 3 torch which will send the signal to open the door. To create an i-cell:
- Place the 3 blocks upright, facing the main leverage line.
- Place 2 red torches on each side, creating 2 antennas.
- Place a red wire between these torches.
- Place another 1 red torch on the middle block under the wire, it will send a signal to open the door.

Step 6. Connect the doors to the i-cell
There should be 3 of them. The next 3 steps are very important for your castle to work.
- The wire from the authenticator must be connected to the i-cell.
- The wire connecting the button must be connected to the i-cell part.
- Remember to use the third red torch on the i-slot. Connect it to the door.
- If you did everything correctly, the mechanism should work. You can add some electric repeaters to slow down the current so you can get in the door faster.

Step 7. Check the lock
The arms that are connected to the red torches on the back of the unit should face down. Everyone else is up. Press the button, the door should open.

Step 8. Congratulations
The castle is ready.
Advice
- You can do the same with caps and drop doors. Show your imagination.
- Better to hide the wiring diagram with beauty blocks.
- Use red dust diodes and repeaters to slow the current down. You will have more time to walk through the door.
- There are many videos on YouTube to help you create such a castle if you are having trouble with it.
- You cannot hide the part of the system that connects the i-cell to the door. You can put the wires underneath if you want to hide them.
Warnings
- If you do something wrong, the lock will not work.
- During the creation of the castle, try to make sure that you are not distracted by monsters.