Advertisement
Spirit13300

Big reactor limit power

Nov 8th, 2016
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local baterie = ""
  2. local reactor = peripheral.wrap("back")
  3.  
  4. while true do
  5.  
  6. baterie = reactor.getEnergyStored()
  7. print(baterie)
  8.  
  9. if baterie < 1000 then
  10. reactor.setActive(true)
  11. end
  12.  
  13. if baterie > 8000000 then
  14. reactor.setActive(false)
  15. end
  16. sleep(1)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement