Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor = peripheral.wrap("BigReactors-Reactor_2")
- local mon = peripheral.wrap("left")
- while true do
- mon.clear()
- mon.setTextColor(colors.white)
- mon.setCursorPos(1,1)
- mon.write("Reactor Status")
- mon.setCursorPos(1,2)
- mon.setTextColor(colors.lightGray)
- mon.write("===========================")
- --RF/T Display
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.white)
- mon.write("RF/T: ")
- mon.setTextColor(colors.lime)
- mon.write(math.floor(reactor.getEnergyProducedLastTick() + 0.5))
- --Fuel Amount
- mon.setCursorPos(1,4)
- mon.setTextColor(colors.white)
- mon.write("Fuel: ")
- mon.setTextColor(colors.lime)
- mon.write(reactor.getFuelAmount()/144)
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement