minicl55

Untitled

Jun 2nd, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. shell.run('clear')
  2. print("Please select an option:\n[1] Enable FF\n[2] Disable FF\n[3] Create wither\n[4] (Debug mode) - Retract wither spawners\n[5] (Debug mode) Spawn wither - FAILS IF FF IS ON\n[6] (Debug mode) Disable both FF")
  3. local event, choice = os.pullEvent("char")
  4. if choice == "1" then
  5. redstone.setBundledOutput("bottom", colors.white+colors.yellow)
  6. shell.run('startup')
  7. end
  8. if choice == "2" then
  9. ffon = false
  10. redstone.setBundledOutput("bottom", 0)
  11. shell.run('startup')
  12. end
  13. if choice == "3" then
  14. if ffon == false then
  15. redstone.setBundledOutput("bottom", colors.magenta)
  16. sleep(1.5)
  17. redstone.setBundledOutput("bottom", colors.blue)
  18. sleep(1)
  19. redstone.setBundledOutput("bottom", colors.orange)
  20. sleep(1)
  21. redstone.setBundledOutput("bottom", 0)
  22. shell.run('startup')
  23. end
  24. if ffon == true then
  25. print("Unable to start - Forcefield is currently on.")
  26. shell.run('startup')
  27. end
  28. end
  29. if choice == "4" then
  30. redstone.setBundledOutput("bottom", colors.orange)
  31. sleep(1)
  32. redstone.setBundledOutput("bottom", 0)
  33. shell.run('startup')
  34. end
  35. if choice == "5" then
  36. redstone.setBundledOutput("bottom", colors.blue)
  37. sleep(2)
  38. redstone.setBundledOutput("bottom", 0)
  39. shell.run('startup')
  40. end
  41. if choice == "6" then
  42. rs.setBundledOutput("bottom", 0)
  43. rs.setBundledOutput("bottom", colors.yellow)
  44. shell.run('startup')
  45. end
Advertisement
Add Comment
Please, Sign In to add comment