bob558

open door

Oct 23rd, 2016
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  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()
Add Comment
Please, Sign In to add comment