wasliebob

Untitled

Jul 2nd, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. reactor = peripheral.wrap("back")
  2. mon = peripheral.wrap("left")
  3.  
  4. isActive = reactor.getActive()
  5. rods = reactor.getNumberOfControlRods()
  6. rfStored = reactor.getEnergyStored()
  7. fuelTemp = reactor.getFuelTemperature()
  8. casingTemp = reactor.getCasingTemperature()
  9. fuelAmount = reactor.getFuelAmount()
  10. rate = reactor.getEnergyProducedLastTick()
  11.  
  12. mon.setBackgroundColor(colors.black)
  13. mon.setTextColor(colors.white);
  14. mon.clear()
  15.  
  16. mon.setCursorPos(1, 1)
  17. mon.write("isActive: " .. tostring(isActive))
  18. mon.setCursorPos(1, 2)
  19. mon.write("Rods: " .. tostring(rods))
  20. mon.setCursorPos(1, 3)
  21. mon.write("Stored: " .. tostring(rfStored) .. " RF")
  22. mon.setCursorPos(1, 4)
  23. mon.write("Fuel Temp: " .. tostring(fuelTemp) .. " C")
  24. mon.setCursorPos(1, 5)
  25. mon.write("Casing Temp: ".. tostring(casingTemp) .. " C")
  26. mon.setCursorPos(1, 6)
  27. mon.write("Fuel: " .. fuelAmount)
  28. mon.setCursorPos(1, 7)
  29. mon.write("Production: " .. rate .. " RF/t")
Advertisement
Add Comment
Please, Sign In to add comment