Advertisement
AlessandroCH

System | Vault Tec Computer Craft

Aug 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setTextColor(colors.lime)
  4. sleep(0.5)
  5. textutils.slowPrint("Vault-Tec 1000 - Vault 58")
  6. sleep(0.5)
  7. textutils.slowPrint("Welcome Overseer")
  8. sleep(0.5)
  9. print(" ")
  10. textutils.slowPrint("Select an Option:")
  11. textutils.slowPrint("[1] Open Vault/Close Vault")
  12. textutils.slowPrint("[2] Disable System")
  13. textutils.slowPrint("[3] Logout")
  14. local event, input = os.pullEvent("char")
  15. if input == "1" then
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. sleep(0.1)
  19. if redstone.getOutput("left", true) then
  20. textutils.slowPrint("Closing...")
  21. redstone.setOutput("left", false)
  22. else
  23. textutils.slowPrint("Opening...")
  24. redstone.setOutput("left" , true)
  25. end
  26. sleep(2)
  27. shell.run("System")
  28. end
  29. if input == "2" then
  30. term.clear()
  31. term.setCursorPos(1,1)
  32. sleep(0.5)
  33. textutils.slowPrint("Disabling System")
  34. sleep(2)
  35.  
  36. end
  37. if input == "3" then
  38. shell.run("Password")
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement