henoireil

Untitled

Oct 24th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. reactor = peripheral.wrap("bottom")
  2. mon = peripheral.wrap("right")
  3.  
  4. while true do
  5. mon.setTextScale(1)
  6. energyStored = reactor.getEnergyStored()
  7. if energyStored < 5000000 then
  8. reactor.setActive(true)
  9. elseif energyStored > 9000000 then
  10. reactor.setActive(false)
  11. end
  12.  
  13. mon.clear()
  14.  
  15. mon.setCursorPos(1,1)
  16. mon.write("Active: ")
  17. mon.write(reactor.getActive())
  18.  
  19. mon.setCursorPos(1,2)
  20. mon.write("RF/T: ")
  21. mon.write(math.ceil(reactor.getEnergyProducedLastTick()))
  22.  
  23. mon.setCursorPos(1,3)
  24. mon.write("RF Stored: ")
  25. mon.write(math.ceil(reactor.getEnergyStored()))
  26.  
  27. mon.setCursorPos(1,4)
  28. mon.write("Casing Heat: ")
  29. mon.write(math.ceil(reactor.getCasingTemperature()))
  30.  
  31. mon.setCursorPos(1,5)
  32. mon.write("Fuel Heat: ")
  33. mon.write(math.ceil(reactor.getFuelTemperature()))
  34.  
  35. os.sleep(5)
  36. end
Advertisement
Add Comment
Please, Sign In to add comment