Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- shell.run("clear")
- local reactor
- reactor = peripheral.wrap("back")
- connected = reactor.getConnected()
- if connected == true then
- status = reactor.getActive() -- true if reactor is on
- if status == true then
- print("reactor still online!")
- else
- print("reactor offline!")
- print("take it online...")
- reactor.setActive(true)
- print("reactor should be online!")
- end
- print("")
- write("RF-stored: ")
- write(reactor.getEnergyStored())
- print("")
- write("RF-production: ")
- write(reactor. getEnergyProducedLastTick())
- print("")
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement