Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("right")
- rednet.open("top")
- mon.clear()
- -- Print
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.blue)
- mon.setTextScale(2)
- mon.write("Reactor")
- while true do
- -- Reactor
- id, msg = rednet.receive()
- table = textutils.unserialize(msg)
- energy = table[1]
- fuel = table[2]
- maxfuel = table[3]
- active = table[4]
- -- Status
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.green)
- mon.write("Status: ")
- mon.setTextColor(colors.red)
- if active == true then
- mon.write("Online")
- else
- mon.write("Offline")
- end
- -- Fuel
- mon.setCursorPos(1,4)
- mon.setTextColor(colors.green)
- mon.write("Fuel: ")
- mon.setTextColor(colors.red)
- mon.write(fuel)
- mon.write("/")
- mon.write(maxfuel)
- -- Energy
- mon.setCursorPos(1,5)
- mon.setTextColor(colors.green)
- mon.write("Energy: ")
- mon.setTextColor(colors.red)
- mon.write(energy)
- mon.write("/10000000")
- -- Lava and water tank
- -- mon.setCursorPos(1,7)
- -- mon.setTextColor(colors.green)
- -- mon.write("Tanks: ")
- -- mon.setTextColor(colors.red)
- -- mon.write(energy)
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment