Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "right"
- print("Carrot's Reactor Controller")
- while true do
- input = read()
- --reactor 1
- if input == "1" then
- print("ON or OFF?")
- input2 = read()
- if input2 == "on" then
- print("Turning Reactor 1 ON")
- rs.setBundledOutput(side, colors.white)
- else
- print("Turning Reactor 1 OFF")
- rs.setBundledOutput(side, colors.white)
- end
- end
- --reactor 2
- if input == "2" then
- print("ON or OFF?")
- input2 = read()
- if input2 == "on" then
- print("Turning Reactor 2 ON")
- rs.setBundledOutput(side, colors.orange)
- else
- print("Turning Reactor 2 OFF")
- rs.setBundledOutput(side, colors.orange)
- end
- end
- --reactor 3
- if input == "3" then
- print("ON or OFF?")
- input2 = read()
- if input2 == "on" then
- print("Turning Reactor 3 ON")
- else
- print("Turning Reactor 3 OFF")
- end
- end
- --reactor 4
- if input == "4" then
- print("ON or OFF?")
- input2 = read()
- if input2 == "on" then
- print("Turning Reactor 4 ON")
- else
- print("Turning Reactor 4 OFF")
- end
- end
- --reactor 5
- if input == "5" then
- print("ON or OFF?")
- input2 = read()
- if input2 == "on" then
- print("Turning Reactor 5 ON")
- else
- print("Turning Reactor 5 OFF")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement