Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.wrap("BigReactors-Reactor_0")
- while (true) do
- print("To turn on the reactor remotly please type 'on' and to turn it off type 'off'. To eject waste type 'eject'.")
- input = read();
- if (input == "on") then
- reactor.setActive(true)
- elseif (input == "off") then
- reactor.setActive(false)
- elseif (input == "eject") then
- reactor.doEjectWaste()
- else
- print("Not a valid command!")
- sleep(5)
- os.reboot()
- end
- print("Done!")
- sleep(5)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment