Advertisement
Guest User

solarGeneratorMonitor

a guest
Mar 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. cell=peripheral.wrap("right")
  2.  
  3. while true do
  4.   if(cell.getEnergyStored()==100000) then
  5.     redstone.setOutput("right",true)
  6.   end
  7.   if(cell.getEnergyStored()==0) then
  8.     redstone.setOutput("right",false)
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement