Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pr = peripheral.wrap("back")
- 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()
- term.setCursorPos(10,7)
- if pr.getActive() == true then
- onoff = "ON"
- else
- onoff = "OFF"
- end
- print("Reactor Status: "..onoff)
- st = pr.getEnergyStored()
- term.setCursorPos(10,8)
- print("RF Stored: ".. st)
- if st <= 5000000 then
- pr.setActive(true)
- else
- pr.setActive(false)
- end
- tc = pr.getCasingTemperature()
- term.setCursorPos(10,9)
- print("Casing Temp: ".. tc)
- tf = pr.getFuelTemperature()
- term.setCursorPos(10,10)
- print("Fuel Temp: ".. tf)
- gr = pr.getEnergyProducedLastTick()
- term.setCursorPos(10,11)
- print("Generating ".. gr .." RF/Tick")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment