Advertisement
Derek1017

Missle Launch

Jul 9th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. print("Korean Launch Terminal")
  5. print(" 1 - Commence Countdown & Launch")
  6. print(" 2 - Lock Terminal")
  7. print(" 3 - Terminal Reboot")
  8. print(" 4 - Terminal Shutdown")
  9. while true do
  10. event, param1, param2, param3, param4 = os.pullEvent()
  11. if event == "char" and param1 == "1" then
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. print("Launch Commencing In T-Minus...")
  15. print("30 Seconds")
  16. sleep(10)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("Launch Commencing In T-Minus...")
  20. print("20 Seconds")
  21. sleep(10)
  22. term.clear()
  23. term.setCursorPos(1,1)
  24. print("Launch Commencing In T-Minus...")
  25. print("10 Seconds")
  26. sleep(10)
  27. term.clear()
  28. term.setCursorPos(1,1)
  29. print("Commencing Launch")
  30. redstone.setOutput("back", true)
  31. sleep(2)
  32. redstone.setOutput("back", false)
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement