ardittristan

Big reactor control screen

Jan 3rd, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. -- you need to add modems to the reactor and monitor
  2. -- then you need to rightclick the monitors
  3. -- after that you see names in the chat, thange the names under here to that names
  4. while true do
  5.   local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
  6.   local mon = peripheral.wrap("monitor_0")
  7.   mon.clear()
  8.  
  9.   mon.setCursorPos(1,1)
  10.   mon.setTextColor(colors.white)
  11.   mon.write("Active: ")
  12.   mon.setTextColor(colors.lime)
  13.   mon.write(reactor1.getActive())
  14.  
  15.   mon.setCursorPos(1,2)
  16.   mon.setTextColor(colors.white)
  17.   mon.write("RF/T: ")
  18.   mon.setTextColor(colors.lime)
  19.   mon.write(math.floor(reactor1.getEnergyProducedLastTick()))
  20.  
  21.   mon.setCursorPos(1,3)
  22.   mon.setTextColor(colors.white)
  23.   mon.write("RF Stored: ")
  24.   mon.setTextColor(colors.lime)
  25.   mon.write(math.floor(reactor1.getEnergyStored()))
  26.  
  27.   mon.setCursorPos(1,4)
  28.   mon.setTextColor(colors.white)
  29.   mon.write("Casing Heat: ")
  30.   mon.setTextColor(colors.white)
  31.   mon.write(math.floor(reactor1.getCasingTemperature()))
  32.  
  33.   mon.setCursorPos(1,5)
  34.   mon.setTextColor(colors.white)
  35.   mon.write("Fuel Heat: ")
  36.   mon.setTextColor(colors.white)
  37.   mon.write(math.floor(reactor1.getFuelTemperature()))
  38.  
  39.  
  40.    sleep(1)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment