Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon1 = peripheral.wrap("left")
- mon2 = peripheral.wrap("monitor_2")
- reactor1 = peripheral.wrap("BigReactors-Reactor_10")
- function getStatus(reactor)
- if reactor.getActive() then
- return "Online"
- else
- return "Offline"
- end
- end
- while true do
- mon1.clear()
- mon1.setTextScale(2)
- mon1.setCursorPos(1,1)
- mon1.write("Reactor 1")
- mon1.setCursorPos(1,2)
- mon1.write("Status: ")
- mon1.setTextColor(colors.lightBlue)
- mon1.write(getStatus(reactor1))
- mon1.setTextColor(colors.white)
- mon1.setCursorPos(1,4)
- mon1.write("Energy out: "..math.floor(reactor1.getEnergyProducedLastTick()*10)*0.1 .." RF/t")
- mon1.setCursorPos(1,5)
- mon1.write("Core Temperature: "..math.floor(reactor1.getCasingTemperature()*10)*0.1 .." °C")
- mon1.setCursorPos(1,6)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement