Valerius2101

solargenerator

Oct 29th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. while true do
  2.  
  3. p=peripheral.wrap("back")
  4. Energy=p.getEnergyStored()
  5.  
  6.  if Energy>99000 then
  7.  
  8.   redstone.setOutput("right", true)
  9.  
  10.  elseif Energy<5000 then
  11.  
  12.   redstone.setOutput("right", false)
  13.  
  14.  end
  15.  
  16.  sleep(0.1)
  17.  
  18. end
Add Comment
Please, Sign In to add comment