Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
- while true do
- if reactor1.getEnergyStored() < 3500000 then
- reactor1.setActive(true)
- print("Reactor turned on")
- elseif reactor1.getEnergyStored() > 9500000 then
- reactor1.setActive(false)
- print("Reactor turned off")
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement