Advertisement
Guest User

BigReactor Output

a guest
Feb 16th, 2015
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. while true do
  2. local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
  3. local mon = peripheral.wrap("monitor_0")
  4.  
  5. mon.clear()
  6. mon.setTextColor(colors.white)
  7. mon.setTextScale(1)
  8.  
  9.  
  10. mon.setCursorPos(1,1)
  11. mon.write("STATUS: ")
  12. if reactor1.getActive(true) then
  13. mon.setBackgroundColor(colors.lime)
  14. mon.write("ACTIVE")
  15. else
  16. mon.setBackgroundColor(colors.red)
  17. mon.write("INACTIVE")
  18. end
  19.  
  20. mon.setBackgroundColor(colors.black)
  21.  
  22. mon.setCursorPos(1,4)
  23. mon.write("Energy Production: " .. math.floor(reactor1.getEnergyProducedLastTick()) .. " RF/t")
  24.  
  25. mon.setCursorPos(1,5)
  26. mon.write("Energy Stored:     " .. math.floor(reactor1.getEnergyStored()) .. " RF")
  27.  
  28. mon.setCursorPos(1,7)
  29. mon.write("Fuel Tank          " .. reactor1.getFuelAmountMax() .. " mB")
  30.  
  31.  
  32. mon.setCursorPos(1,8)
  33. mon.write("Fuel Available:    " .. math.floor(reactor1.getFuelAmount()) .. " mB")
  34.  
  35. mon.setCursorPos(1,9)
  36. mon.write("Fuel Usage:        " .. reactor1.getFuelConsumedLastTick() .. " mB/t")
  37.  
  38. mon.setCursorPos(1,10)
  39. mon.write("Fuel Temperature:  " .. math.floor(reactor1.getFuelTemperature()) .." C")
  40.  
  41. mon.setCursorPos(1,11)
  42. mon.write("Casing Temperature:" .. math.floor(reactor1.getCasingTemperature()) .. " C")
  43.  
  44. sleep(5)
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement