R3C0NF16UR3D

yes no menu cc

Oct 11th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. shell.run("clear")
  2. print (" Panic Room Door control 0.2v")
  3. print (" ----------------------------")
  4. print (" [1] Open Door ")
  5. print (" [2] Close Door ")
  6. print (" [3] Exit ")
  7. print (" [4] Shutdown Computer ")
  8. input = read.io()
  9. yes = "1"
  10. no = "2"
  11. yo = "3"
  12. la = "4"
  13. if input == yes then
  14. redstone.setOutput ("back", false)
  15. shell.run("startup")
  16. end
  17. if input == no then
  18. redstone.setOutput ("back", true)
  19. shell.run("startup")
  20. end
  21. if input == yo then
  22. shell.run("clear")
  23. function mainmenu()
  24. end
  25. end
  26. if input == la then
  27. sleep(1)
  28. os.shutdown()
  29. end
Add Comment
Please, Sign In to add comment