Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("monitor_0")
- pr = peripheral.wrap("back")
- mon.setTextColor(colors.white)
- if pr.getConnected() == false then
- term.clear()
- term.setCursorPos(8,5)
- print("Sorry but this computer couldn")
- term.setCursorPos(8,6)
- print("connect to the reactor.")
- else
- while true do
- term.clear()
- mon.clear()
- term.setCursorPos(1,1)
- mon.setCursorPos(1,1)
- if pr.getActive() == true then
- onoff = "ON"
- else
- onoff = "OFF"
- end
- print("Reactor Status: "..onoff)
- mon.write("Reactor Status: "..onoff)
- st = pr.getEnergyStored()
- term.setCursorPos(14,10)
- mon.setCursorPos(10,9)
- print("RF Stored: ".. st)
- mon.write("RF Stored: "..st)
- if st <= 1000000 then
- pr.setActive(true)
- elseif st >= 9950000 then
- pr.setActive(false)
- end
- tc = pr.getCasingTemperature()
- term.setCursorPos(25,1)
- mon.setCursorPos(1,4)
- print("Casing Temp: ".. tc)
- mon.write("Casing Temp: "..tc)
- tf = pr.getFuelTemperature()
- term.setCursorPos(25,2)
- mon.setCursorPos(1,5)
- print("Fuel Temp: ".. tf)
- mon.write("Fuel Temp: "..tf)
- fa = pr.getFuelAmount()
- fm = pr.getFuelAmountMax()
- term.setCursorPos(1,2)
- mon.setCursorPos(1,2)
- print("Fuel lvl: ".. fa .."/".. fm)
- mon.write("Fuel lvl: "..fa.."/"..fm)
- gr = pr.getEnergyProducedLastTick()
- if gr == 0 then
- else
- term.setCursorPos(10,13)
- mon.setCursorPos(6,11)
- print("Generating ".. gr .." RF/Tick")
- mon.write("Generating "..gr.." RF/TICK")
- end
- ra = pr.getFuelReactivity()
- term.setCursorPos(25,3)
- print("Reactive Lvl: ".. ra .."%")
- mon.setCursorPos(1,6)
- mon.write("Reactive Lvl: ".. ra .."%")
- sleep(1)
- end
- end
Add Comment
Please, Sign In to add comment