It is a compact, 12 button, 4 digit programmable combination lock. Since it requires a signal strength input, the button panel can be wired with a single redstone line. It uses 8 vertical SS memory cells, 4 for code memory (Dark Grey wool) and 4 for input memory (White wool). The yellow line controls which cells are cleared and written to, and is composed of a SS to unary decoder and two modified SS memory cells. The light grey line contains an RS nor latch for switching between writing into Input memory or Code memory, and it contains a SS to unary decoder for the New Input and New Code buttons. The light blue line compares the code memory to the input memory and performs an and operation on the comparison. The other redstone lines are less important and are explained on signs. The lock also has several nice features. If it is unlocked, pressing any button automatically resets the lock, the SS input allows for a compact button pad, the code can only be reset after it has been unlocked, and the lock can only switch to the new input mode if all 4 digits of the code have been programmed into the lock.
I have added a dark green line to the left of the button pad that resets the code to 1-1-1-1. To try to unlock it, first press the New Input button, then on the 12 digit pad press four buttons for the combination. Each input must have at least three ticks between the button unpressing and the next being pressed. It will only unlock if the correct combination is entered. If it has been unlocked the door will open. To write a new combination, press the New Code button after the lock has been unlocked. Then, just like the input, press four buttons with at least three ticks between each to set a new code. After the new code has been programmed in, press the New Input button to save the code completely. Now the lock must be unlocked with the new code to be able to reprogram it.
Comments
Lol part of my build is in
Lol part of my build is in the background
Great!
Really great! It changes combination locks to have max security, so no pesky raiders can steal your stuff. Overall, is a great build!