ClocxHD

Reaktor

Apr 11th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.   local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
  3.   local mon = peripheral.wrap("monitor_1")
  4.   mon.clear()
  5.  
  6.   -- Begin Reactor 1
  7.   --mon.setCursorPos(1,1)
  8.   --mon.setTextColor(colors.white)
  9.   --mon.write("Reaktor #: ")
  10.   --mon.setTextColor(colors.lime)
  11.   --mon.write("1")
  12.  
  13.   mon.setCursorPos(1,1)
  14.   mon.setTextColor(colors.white)
  15.   mon.write("Aktiv: ")
  16.   mon.setTextColor(colors.lime)
  17.   mon.write(reactor1.getActive())
  18.  
  19.   mon.setCursorPos(1,4)
  20.   mon.setTextColor(colors.white)
  21.   mon.write("Casing Heat: ")
  22.   mon.setTextColor(colors.lime)
  23.   mon.write(math.floor(reactor1.getCasingTemperature()))
  24.  
  25.   mon.setCursorPos(1,5)
  26.   mon.setTextColor(colors.white)
  27.   mon.write("Fuel Heat: ")
  28.   mon.setTextColor(colors.lime)
  29.   mon.write(math.floor(reactor1.getFuelTemperature()))
  30.   -- End Reactor 1
  31.  
  32.    sleep(5)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment