Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Keypad=peripheral.wrap("left") --naturally change "left" to the side it is in
- --adds access code *1234 with access level 5
- Keypad.learnCode("mainCode", "*1234", 5)
- --programs the keypad to emit redstone on its left side for 30 ticks (1.5 seconds)
- --when it gets a code with access level 5
- Keypad.program("left", 5, 30)
- --this will prevent learnCode(...) and program(...) from being called until unlock() is called with the same pw)
- Keypad.lock("mypassword")
Add Comment
Please, Sign In to add comment