minicl55

Untitled

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