Advertisement
Guest User

Untitled

a guest
May 29th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. reactorID = "BigReactors-Reactor_0"
  2.  
  3. react = peripheral.wrap(reactorID)
  4. eStop = true
  5.  
  6. while eStop == true do
  7.  
  8. storeReact = react.getEnergyStored()
  9.  
  10. if (storeReact > 9500000) then
  11. react.setActive(false)
  12. end
  13.  
  14. if storeReact < 100 then
  15. react.setActive(true)
  16. end
  17.  
  18. sleep(2)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement