Guest User

ReactorDisplay

a guest
Sep 23rd, 2019
104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("back")
  2. local mon = peripheral.wrap("top")
  3. mon.clear()
  4. while true do
  5.   id,ReactorActive = rednet.receive("ReactorActive")
  6.   id,ReactorHeat = rednet.receive("ReactorHeat")
  7.   id,ReactorMaxHeat = rednet.receive("ReactorMaxHeat")
  8.   id,ReactorPower = rednet.receive("ReactorPower")
  9.   mon.setTextScale(1.5)
  10.   mon.setCursorPos(1,1)
  11.   mon.write("Active: " .. (ReactorActive and 'true' or 'false'))
  12.   mon.setCursorPos(1,2)
  13.   mon.write("Heat: " .. ReactorHeat .. "/" .. ReactorMaxHeat)
  14.   mon.setCursorPos(1,3)
  15.   mon.write("Power:" .. ReactorPower)
  16.   os.sleep(1)
  17.   mon.clear()
  18. end
RAW Paste Data