Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- R = peripheral.wrap("BigReactors-Reactor_0")
- M = peripheral.wrap("top")
- High = 8000000
- Low = 1000000
- while (true) do
- M.clear()
- M.setTextScale(1.5)
- M.setCursorPos(1,1)
- M.setTextColor(colors.white)
- M.write("Reactor Active: ")
- M.setTextColor(colors.lime)
- M.write(tostring(R.getActive()))
- M.setTextColor(colors.white)
- M.setCursorPos(1,2)
- M.write("Tempature: ")
- M.setTextColor(colors.lightBlue)
- M.write( math.floor(R.getFuelTemperature()).." C")
- M.setTextColor(colors.white)
- M.setCursorPos(1,3)
- M.write("Casing Temp: ")
- M.setTextColor(colors.lightBlue)
- M.write( math.floor(R.getCasingTemperature()).. " C")
- M.setTextColor(colors.white)
- M.setCursorPos(1,4)
- M.write("Energy Output: ")
- M.setTextColor(colors.yellow)
- M.write( math.floor(R.getEnergyProducedLastTick()).. " RF/t")
- M.setTextColor(colors.white)
- M.setCursorPos(1,5)
- M.write("Energy Stored: ")
- M.setTextColor(colors.yellow)
- M.write( R.getEnergyStored().. " RF")
- if R.getEnergyStored() < Low then
- R.setActive(true)
- end
- if R.getEnergyStored() > High then
- R.setActive(false)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement