minicl55

Untitled

Jun 2nd, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. function start()
  2. shell.run('clear')
  3. 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")
  4. p1 = ""
  5. local event, choice = os.pullEvent("char")
  6. if choice == "1" then
  7. ffon = true
  8. redstone.setBundledOutput("bottom", colors.white)
  9. start()
  10. end
  11. if choice == "2" then
  12. ffon = false
  13. redstone.setBundledOutput("bottom", 0)
  14. start()
  15. end
  16. if choice == "3" then
  17. if ffon == false then
  18. redstone.setBundledOutput("bottom", colors.magenta)
  19. sleep(1.5)
  20. redstone.setBundledOutput("bottom", colors.blue)
  21. sleep(1)
  22. redstone.setBundledOutput("bottom", colors.orange)
  23. sleep(1)
  24. redstone.setBundledOutput("bottom", 0)
  25. start()
  26. end
  27. if ffon == true then
  28. print("Unable to start - Forcefield is currently on.")
  29. start()
  30. end
  31. end
  32. if choice == "4" then
  33. redstone.setBundledOutput("bottom", colors.orange)
  34. sleep(1)
  35. redstone.setBundledOutput("bottom", 0)
  36. start()
  37. end
  38. if choice == "5" then
  39. redstone.setBundledOutput("bottom", colors.blue)
  40. sleep(1)
  41. redstone.setBundledOutput("bottom", 0)
  42. end
  43.  
  44. end --End function
  45.  
  46. start()
Advertisement
Add Comment
Please, Sign In to add comment