Advertisement
jomin398

MC OC Reactor info

Dec 6th, 2018
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.56 KB | None | 0 0
  1. -- gpu setup
  2.   local gpu = component.gpu
  3.   local mon = mon.redirect(gpu)
  4.   local reactor1 = component.br_reactor
  5.   local versionType = "NEW"
  6.   local DEBUG = false
  7.   local debugList = {}
  8.   local debugVars = {}
  9.   local colors = { lime = 0xBFFF00, black = 0x000000, white = 0xFFFFFF}
  10.   -- set size of the screen for lvl 3
  11.   gpu.setResolution(132,38)
  12.   gpu.setBackground(colors.black)
  13.   gpu.fill(1, 1, 132, 38, " ")
  14.  
  15.   local sections = {}
  16.   local graphs = {}
  17.   local infos = {}
  18.   mon.clear()
  19.  
  20.   -- Begin Reactor 1
  21.   --mon.setCursorPos(1,1)
  22.   --mon.setTextColor(colors.white)
  23.   --mon.write("Reactor #: ")
  24.   --mon.setTextColor(colors.lime)
  25.   --mon.write("1")
  26.  
  27.   mon.setCursorPos(1,1)
  28.   mon.setTextColor(colors.white)
  29.   mon.write("Active: ")
  30.   mon.setTextColor(colors.lime)
  31.   mon.write(reactor1.getActive())
  32.    
  33.   mon.setCursorPos(1,2)
  34.   mon.setTextColor(colors.white)
  35.   mon.write("RF/T: ")  
  36.   mon.setTextColor(colors.lime)
  37.   mon.write(math.floor(reactor1.getEnergyProducedLastTick()))
  38.  
  39.   mon.setCursorPos(1,3)
  40.   mon.setTextColor(colors.white)
  41.   mon.write("RF Stored: ")
  42.   mon.setTextColor(colors.lime)
  43.   mon.write(math.floor(reactor1.getEnergyStored()))
  44.  
  45.   mon.setCursorPos(1,4)
  46.   mon.setTextColor(colors.white)
  47.   mon.write("Casing Heat: ")
  48.   mon.setTextColor(colors.lime)
  49.   mon.write(math.floor(reactor1.getCasingTemperature()))
  50.  
  51.   mon.setCursorPos(1,5)
  52.   mon.setTextColor(colors.white)
  53.   mon.write("Fuel Heat: ")
  54.   mon.setTextColor(colors.lime)
  55.   mon.write(math.floor(reactor1.getFuelTemperature()))
  56.   -- End Reactor 1
  57.  
  58.   os.sleep(1000)
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement