Advertisement
Guest User

reactorcontrol

a guest
Jul 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. redstone.setOutput("right", false)
  2. while true do
  3. t = peripheral.wrap("back")
  4. e = t.getEnergyStored()
  5. print("Energy: ", e)
  6.  
  7. if e < 50000 then
  8.   redstone.setOutput("right", true)
  9.   os.sleep(1)
  10.   redstone.setOutput("right", false)
  11.   os.sleep(60)
  12. end
  13. if e > 990000 then
  14.   redstone.setOutput("right", true)
  15.   os.sleep(1)
  16.   redstone.setOutput("right", false)
  17.   os.sleep(60)  
  18. end
  19.  
  20. os.sleep(2)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement