Virgilcore

Vault terminal computercraft

Jul 3rd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local oldPull = os.pullEvent;
  2. os.pullEvent = os.pullEventRaw;
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. correctpass = "Open"
  6. write("Enter Password: ")
  7. pass = read("*")
  8. if pass == (inst) then
  9. write("Vault door cycling sequence initiated")
  10. redstone.setOutput("back", true )
  11. sleep(7)
  12. redstone.setOutput("back", false )
  13. os.shutdown()
  14. end
  15. write("Incorrect Password")
  16. sleep(3)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. textutils.slowPrint("Terminal Locking Down in 3... 2... 1...")
  20. sleep(.5)
  21. os.shutdown()
  22. os.pullEvent = oldPull;
Add Comment
Please, Sign In to add comment