killerbng

Untitled

Oct 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. while true do
  2.   local reactor = peripheral.wrap("BigReactors-Main_Reactor")
  3.   local low = 1000000
  4.   local high = 10000000  
  5.  
  6.   if reactor.getEnergyStored() <= low then
  7.     reactor.setActive(true)
  8.   end
  9.  
  10.   if reactor.getEnergyStored() >= high then
  11.     reactor.setActive(false)
  12.   end
  13.  
  14.   sleep(5)
  15. end
Add Comment
Please, Sign In to add comment