Advertisement
Guest User

test

a guest
Sep 2nd, 2014
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. cell = peripheral.wrap("left")
  2.  
  3. while true do
  4.   local energy
  5.   energy = cell.getEnergyStored("north")
  6.   print (energy)
  7.   if energy > 4000000 then
  8.     redstone.setOutput("back",false)
  9.     sleep(1)
  10.   end
  11.   if energy < 100000 then
  12.     redstone.setOutput("back",true)
  13.     sleep(1)
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement