bob558

open door

Oct 23rd, 2016
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [[-- 4 == redstone io bottom --]]
  2. function clear()
  3. term.clear()
  4. end
  5. local component = require("component")
  6. local c = component.redstone
  7. local pw = "II"
  8. print("Please enter password (Screen will go blank)")
  9. component.screen.turnOff()
  10. asdf = io.read()
  11. if asdf == pw then
  12. clear()
  13. component.screen.TurnOn()
  14. print("Permission granted")
  15. c.setOutput(4, 15)
  16. os.sleep(3)
  17. c.setOutput(4, 0)
  18. else
  19. clear()
  20. print(asdf .." is not the password.")
  21. component.screen.turnOn()
RAW Paste Data Copied