Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripwritreral.wrap("back")
- rct = peripheral.wrap("BigReactors-Reactor_0")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- mon.setTextColor(colors.lime)
- mon.write("Reactor")
- while true do
- --Display---------
- mon.setCursorPos(1,2)
- mon.setTextColor(colors.orange)
- mon.write(math.floor(rct.getEnergyStored()))
- mon.setTextColour(colors.white)
- mon.write("RF")
- mon.setCursorPos(1,3)
- mon.setTextColour(colors.orange)
- mon.write(math.floor(rct.getEnergyProductionLastTick()))
- mon.setTextColor(colours.white)
- mon.write("RF/t")
- mon.setCursorPos(1,4)
- if rct.getActive(true)
- then
- mon.write("Currently Online")
- else
- mon.write("Currently Offline")
- end
- --Control---------
- if rct.getEnergyStored() < 20000
- then rct.setActive(true)
- end
- if rct.getEnergyStored() > 9000000
- then rct.setActive(flalse)
- end
- sleep(0,01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement