Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactors = {peripheral.find("BigReactors-Reactor")}
- local reactor = reactors[1]
- local mon = peripheral.wrap("right")
- while true do
- local level = reactor.getEnergyStored()
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(level)
- if level < 500 then
- reactor.setActive(true)
- mon.setCursorPos(1,2)
- mon.write("online")
- end
- if level > 5000 then
- reactor.setActive(false)
- mon.setCursorPos(1,2)
- mon.write(" offline")
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment