Advertisement
LokeYourLord

Untitled

Sep 8th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Reactor Monitor
  2.  
  3. reactor = peripheral.wrap("right")
  4.  
  5. while true do
  6.  
  7. if reactor.getConnected() == true then
  8.  
  9. if reactor.getEnergyStored() > 9000000 then
  10.     if reactor.getActive() == true then
  11.         reactor.setActive(false)
  12.     end
  13. end
  14.  
  15. if reactor.getEnergyStored() < 100000 then
  16.     if reactor.getActive() == false then
  17.         reactor.setActive(true)
  18.     end
  19. end
  20.  
  21.  
  22. else
  23. sleep(1)
  24.  
  25. end
  26. sleep(3)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement