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)
- monitor.setTextScale(2)
- mon.write("Energy storage")
- while true do
- -- Reactor
- id, msg = rednet.receive()
- table = textutils.unserialize(msg)
- energy = table[1]
- maxenergy = table[2]
- -- Energy
- mon.setCursorPos(1,3)
- mon.setTextColor(colors.green)
- mon.write("Energy: ")
- mon.setTextColor(colors.red)
- mon.write(energy)
- mon.write(maxenergy)
- sleep(0)
- end
Add Comment
Please, Sign In to add comment