Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest = peripheral.wrap("bottom")
- function firstEmpty()
- chest.condenseItems()
- for i=1,chest.getInventorySize(),1 do
- a = chest.getStackInSlot(i)
- if a.qty < 1 then
- return i
- break
- end
- end
- end
- --while true do
- a = firstEmpty()
- chest.pullItemFromSlot("up",1,1,a)
- chest.pushItem("north",a)
- --end
Advertisement
Add Comment
Please, Sign In to add comment