Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chest = peripheral.wrap("right")
- local size = chest.getInventorySize()
- local wait = 10
- while(true) do
- for k = 1, size do
- local stack = chest.getStackInSlot(k)
- if stack ~= nil then
- local qty = stack["qty"]/4
- for i = 1, qty do
- for j = 1, 4 do
- chest.pushItemIntoSlot("down", k, 1, j)
- end
- end
- end
- end
- sleep(wait)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement