Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.wrap("BigReactors-Reactor_0")
- mon = peripheral.wrap("monitor_9")
- mon.clear()
- while true do
- mon.setBackgroundColor(colors.black)
- coretemp = reactor.getFuelTemperature()
- casetemp = reactor.getCasingTemperature()
- rf = reactor.getEnergyProducedLastTick()
- stored = reactor.getEnergyStored()
- sleep(0)
- -- Euberschreift
- mon.setCursorPos(1,1)
- mon.setBackgroundColor(colors.lime)
- mon.setTextColor(colors.blue)
- mon.write("Reaktor: <Zum Travohaeuschen>")
- mon.setBackgroundColor(colors.black)
- --
- -- Status
- mon.setCursorPos(2,3)
- mon.setTextColor(colors.yellow)
- mon.write("Status:")
- --
- if reactor.getActive()==true then
- mon.clearLine()
- mon.setCursorPos(2,3)
- mon.setTextColor(colors.yellow)
- mon.write("Status:")
- mon.setCursorPos(18,3)
- mon.setTextColor(colors.lime)
- mon.write("Online")
- end
- if reactor.getActive()== false then
- mon.clearLine()
- mon.setCursorPos(2,3)
- mon.setTextColor(colors.yellow)
- mon.write(" Status:")
- mon.setCursorPos(18,3)
- mon.setTextColor(colors.red)
- mon.write("Offline")
- end
- -- Rf/Tick
- mon.setCursorPos(2,5)
- mon.setTextColor(colors.yellow)
- mon.write(" Energie:")
- mon.setCursorPos(18,5)
- mon.setTextColor(colors.red)
- rfrund = (math.floor(rf))
- mon.write(rfrund)
- -- Core Temp
- corerund = (math.floor(coretemp))
- mon.setCursorPos(2,7)
- mon.setTextColor(colors.yellow)
- mon.write("Coretemp:")
- mon.setCursorPos(18,7)
- mon.setTextColor(colors.green)
- mon.write(corerund)
- --CaseTemp
- mon.setCursorPos(2,9)
- mon.setTextColor(colors.yellow)
- mon.write("CaseTemp:")
- caserund = (math.floor(casetemp))
- mon.setCursorPos(18,9)
- mon.setTextColor(colors.green)
- mon.write(caserund)
- --
- -- EnergyBuffer
- mon.setCursorPos(5,11)
- mon.setTextColor(colors.yellow)
- mon.write("Gesp.:")
- mon.setCursorPos(18,11)
- mon.setTextColor(colors.red)
- nrg= (math.floor(100 * stored / 10000000))
- mon.setTextColor(colors.green)
- mon.write(nrg)
- mon.setTextColor(colors.yellow)
- mon.setCursorPos(25,5)
- mon.write("Rf/t")
- mon.setCursorPos(25,7)
- mon.write("Grad C.")
- mon.setCursorPos(25,9)
- mon.write("Grad C.")
- mon.setCursorPos(25,11)
- mon.write("%")
- if reactor.getEnergyStored() < 2000000 then
- reactor.setActive (true)
- end
- if reactor.getEnergyStored() > 8000000 then
- reactor.setActive (false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement