Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local reactor1 = peripheral.wrap("BigReactors-Reactor_1")
- local reactor2 = peripheral.wrap("BigReactors-Reactor_2")
- local reactor3 = peripheral.wrap("BigReactors-Reactor_3")
- local reactor4 = peripheral.wrap("BigReactors-Reactor_4")
- write("Reactor 1-4: ")
- --r1
- if reactor1.getActive == true then
- term.setTextColor(colors.green)
- write("[Online] ")
- end
- if reactor1.getActive == not true then
- term.setTextColor(colors.red)
- write("[Offline] ")
- end
- --r2
- if reactor2.getActive == true then
- term.setTextColor(colors.green)
- write("[Online] ")
- end
- if reactor2.getActive == not true then
- term.setTextColor(colors.red)
- write("[Offline] ")
- end
- --r3
- if reactor3.getActive == true then
- term.setTextColor(colors.green)
- write("[Online] ")
- end
- if reactor3.getActive == not true then
- term.setTextColor(colors.red)
- write("[Offline] ")
- end
- --r4
- if reactor1.getActive == true then
- term.setTextColor(colors.green)
- write("[Online] ")
- end
- if reactor1.getActive == not true then
- term.setTextColor(colors.red)
- write("[Offline] ")
- end
- term.setTextColor(colors.white)
- --end r status
- print("")
- write("Which reactor do you wish to manage: ")
- local input1 = read()
- if input1 == "1" then
- --insert commands for reactor here
- print("")
- write("Auto-set to toggle generator.")
- reactor1.setActive()
- end
- if input1 == "2" then
- --insert commands for reactor here
- print("")
- write("Auto-set to toggle generator.")
- reactor2.setActive()
- end
- if input1 == "3" then
- --insert commands for reactor here
- print("")
- write("Auto-set to toggle generator.")
- reactor3.setActive()
- end
- if input1 == "4" then
- --insert commands for reactor here
- print("")
- write("Auto-set to toggle generator.")
- reactor4.setActive()
- end
- term.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement