Kodos

BioLock Keypad for Dummies

Sep 27th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Keypad=peripheral.wrap("left") --naturally change "left" to the side it is in
  2.  
  3. --adds access code *1234 with access level 5
  4. Keypad.learnCode("mainCode", "*1234", 5)
  5.  
  6. --programs the keypad to emit redstone on its left side for 30 ticks (1.5 seconds)
  7. --when it gets a code with access level 5
  8. Keypad.program("left", 5, 30)
  9.  
  10. --this will prevent learnCode(...) and program(...) from being called until unlock() is called with the same pw)
  11. Keypad.lock("mypassword")
Add Comment
Please, Sign In to add comment