Advertisement
KaychenHH

ReactTest

Apr 11th, 2022
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  1. monitor1 = peripheral.wrap("top")
  2. monitor2 = peripheral.wrap("monitor_0")
  3. --monitor3 = peripheral.wrap("monitor_1")
  4. react1 = peripheral.wrap("BigReactors-Reactor_0")
  5. react2 = peripheral.wrap("BigReactors-Reactor_1")
  6. react3 = peripheral.wrap("BigReactors-Reactor_2")
  7.  
  8. AnzReact = 3
  9.  
  10. print(react1, react2, react3)
  11. print(react1.getConnected, react2.getConnected, react3.getConnected)
  12.  
  13. function HoleDaten(reactor)
  14.  
  15.     local bat = reactor.getEnergyStats()
  16.     local fuel = reactor.getFuelStats()
  17.  
  18.     storedThisTick = bat.energyStored
  19.     lastRFT = bat.energyProducedLastTick
  20.     capacity = bat.energyCapacity
  21.     rod = reactor.getControlRodLevel(0)
  22.     fuelUsage = fuel.fuelConsumedLastTick / 1000
  23.     waste = reactor.getWasteAmount()
  24.     fuelTemp = reactor.getFuelTemperature()
  25.     caseTemp = reactor.getCasingTemperature()
  26.  
  27.     print("Akku: ", storedThisTick)
  28.     print("Leistung: ", lastRFT)
  29.     print(" ")
  30.  
  31. end
  32.  
  33. while true do
  34.     HoleDaten(react1)
  35.     HoleDaten(react2)
  36.     HoleDaten(react3)
  37.     sleep(2)
  38. end
  39.  
  40.  
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement