Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.wrap("back")
- mon = peripheral.wrap("monitor_1")
- while true do
- mon.setTextScale(2)
- energyStored = reactor.getEnergyStored()
- if energyStored < 5000000 then
- reactor.setActive(true)
- elseif energyStored > 9000000 then
- reactor.setActive(false)
- end
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Active: ")
- mon.write(reactor.getActive())
- mon.setCursorPos(1,2)
- mon.write("RF/T: ")
- mon.write(math.floor(reactor.getEnergyProducedLastTick()))
- mon.setCursorPos(1,3)
- mon.write("RF Stored: ")
- mon.write(math.floor(reactor.getEnergyStored()))
- mon.setCursorPos(1,4)
- mon.write("Casing Heat: ")
- mon.write(math.floor(reactor.getCasingTemperature()))
- mon.setCursorPos(1,5)
- mon.write("Fuel Heat: ")
- mon.write(math.floor(reactor.getFuelTemperature()))
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment