Advertisement
Parg60

reactorManagment

Dec 23rd, 2020 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
  2.  
  3. while true do
  4.     if reactor1.getEnergyStored() < 3500000 then
  5.         reactor1.setActive(true)
  6.         print("Reactor turned on")
  7.     elseif reactor1.getEnergyStored() > 9500000 then
  8.         reactor1.setActive(false)
  9.         print("Reactor turned off")
  10.     end
  11.     os.sleep(1)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement