Damaged

Fermenter manager

May 9th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. chest = peripheral.wrap("bottom")
  2.  
  3. function firstEmpty()
  4.   chest.condenseItems()
  5.   for i=1,chest.getInventorySize(),1 do
  6.     a = chest.getStackInSlot(i)
  7.     if a.qty < 1 then
  8.       return i
  9.       break
  10.     end
  11.   end
  12. end
  13.  
  14.  
  15. --while true do
  16.   a = firstEmpty()
  17.   chest.pullItemFromSlot("up",1,1,a)
  18.   chest.pushItem("north",a)
  19. --end
Advertisement
Add Comment
Please, Sign In to add comment