Advertisement
Guest User

Computercraft/bigreac

a guest
Dec 14th, 2019
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. while true do
  2.     local reactor = peripheral.wrap("BigReactors_Reactor_0")
  3.     local monitor = peripheral.wrap("monitor_0")
  4.  
  5.     mon.clear()
  6.  
  7.   mon.setTextColor(colors.white)
  8.   mon.write("Active: ")
  9.   mon.setTextColor(colors.lime)
  10.   mon.write(reactor1.getActive())
  11.    
  12.   mon.setCursorPos(1,2)
  13.   mon.setTextColor(colors.white)
  14.   mon.write("RF/T: ")  
  15.   mon.setTextColor(colors.lime)
  16.   mon.write(math.floor(reactor1.getEnergyProducedLastTick()))
  17.  
  18.   mon.setCursorPos(1,3)
  19.   mon.setTextColor(colors.white)
  20.   mon.write("RF Stored: ")
  21.   mon.setTextColor(colors.lime)
  22.   mon.write(math.floor(reactor1.getEnergyStored()))
  23.  
  24.   mon.setCursorPos(1,4)
  25.   mon.setTextColor(colors.white)
  26.   mon.write("Casing Temperature: ")
  27.   mon.setTextColor(colors.lime)
  28.   mon.write(math.floor(reactor1.getCasingTemperature()))
  29.  
  30.   mon.setCursorPos(1,5)
  31.   mon.setTextColor(colors.white)
  32.   mon.write("Core Temperature: ")
  33.   mon.setTextColor(colors.lime)
  34.   mon.write(math.floor(reactor1.getFuelTemperature()))
  35.   -- End Reactor 1
  36.  
  37.    sleep(5)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement