Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor = peripheral.wrap("back")
- local mon = peripheral.wrap("right")
- local mon2 = peripheral.wrap("left")
- while true do
- mon.clear()
- mon2.clear()
- mon.setCursorPos(1,1)
- mon.write("Reactor Temp:"..reactor.getFuelTemperature())
- mon2.setCursorPos(1,1)
- mon2.write("Time: "..os.time())
- mon.setCursorPos(1,3)
- mon.write("Energy in the buffer: "..reactor.getEnergyStored())
- mon.setCursorPos(1,5)
- mon.write("Casing Temp: "..reactor.getCasingTemperature())
- mon.setCursorPos(1,7)
- mon.write("RF Per Tick: "..reactor.getEnergyProducedLastTick())
- local rfStor = reactor.getEnergyStored()
- local rf = rfStor / 10000000
- if rf < 0.8 then
- reactor.setAllControlRodLevels(0)
- else
- reactor.setAllControlRodLevels(50)
- end
- mon.setCursorPos(1,9)
- mon.write("Fuel Rod Level: "..reactor.getControlRodLevel(0).."%")
- mon.setCursorPos(1,11)
- local rfp = rf*100
- mon.write("Buffer Lvl: "..rfp.."%")
- mon.setCursorPos(1,13)
- mon.write("Waste Amount: "..reactor.getWasteAmount().."mb")
- mon.setCursorPos(1,15)
- mon.write("Fuel Remaining: "..reactor.getFuelAmount().."mb")
- mon.setCursorPos(1,17)
- local wastep = (reactor.getWasteAmount() / reactor.getFuelAmountMax())*100
- mon.write("Waste %:: "..wastep.."%")
- mon2.setCursorPos(1,3)
- mon2.write(" _")
- mon2.setCursorPos(1,4)
- mon2.write("_| |_")
- mon2.setCursorPos(1,5)
- mon2.write(" 0.o")
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement