Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- local mon = peripheral.wrap("top")
- mon.clear()
- while true do
- id,ReactorActive = rednet.receive("ReactorActive")
- id,ReactorHeat = rednet.receive("ReactorHeat")
- id,ReactorMaxHeat = rednet.receive("ReactorMaxHeat")
- id,ReactorPower = rednet.receive("ReactorPower")
- mon.setTextScale(1.5)
- mon.setCursorPos(1,1)
- mon.write("Active: " .. (ReactorActive and 'true' or 'false'))
- mon.setCursorPos(1,2)
- mon.write("Heat: " .. ReactorHeat .. "/" .. ReactorMaxHeat)
- mon.setCursorPos(1,3)
- mon.write("Power:" .. ReactorPower)
- os.sleep(1)
- mon.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement