Advertisement
Guest User

startup

a guest
Apr 27th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setTextColor (colours.orange)
  4. print ("JackStone's Security v1.1")
  5. term.setTextColor (colours.white)
  6. pass = "StoneJack"
  7. term.setTextColor (colours.red)
  8. write ("Passwort: ")
  9. term.setTextColor (colours.yellow)
  10. input = read()
  11. if input == pass then
  12. print ("Zutritt gestattet")
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. term.setTextColor (colours.orange)
  16. print ("House of JackStone v1.1")
  17. term.setTextColor (colours.white)
  18. else
  19. term.setTextColor (colours.red)
  20. print (" ")
  21. write ("Alarm! ")
  22. redstone.setOutput("left",true)
  23. sleep(1) write(".") sleep(0.7) write(".") sleep(0.7) write(".")
  24. sleep(4)
  25. redstone.setOutput("left",false)
  26. term.setTextColor (colours.white)
  27. os.reboot()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement