Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start()
- shell.run('clear')
- 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")
- p1 = ""
- local event, choice = os.pullEvent("char")
- if choice == "1" then
- ffon = true
- redstone.setBundledOutput("bottom", colors.white)
- start()
- end
- if choice == "2" then
- ffon = false
- redstone.setBundledOutput("bottom", 0)
- start()
- end
- if choice == "3" then
- if ffon == false then
- redstone.setBundledOutput("bottom", colors.magenta)
- sleep(1.5)
- redstone.setBundledOutput("bottom", colors.blue)
- sleep(1)
- redstone.setBundledOutput("bottom", colors.orange)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- start()
- end
- if ffon == true then
- print("Unable to start - Forcefield is currently on.")
- start()
- end
- end
- if choice == "4" then
- redstone.setBundledOutput("bottom", colors.orange)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- start()
- end
- if choice == "5" then
- redstone.setBundledOutput("bottom", colors.blue)
- sleep(1)
- redstone.setBundledOutput("bottom", 0)
- end
- end --End function
- start()
Advertisement
Add Comment
Please, Sign In to add comment