Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pim = "right"
- chest = "north"
- p = peripheral.wrap(pim)
- while true do
- if p.getInventorySize() > 0 then
- c = 0
- for i = 1, p.getInventorySize() do
- if i < 40 and p.getStackInSlot(i) ~= nil then
- p.pushItem(chest, i)
- c = c + 1
- end
- end
- if c > 0 then
- print("Moved " .. c .. " items from " .. p.getInventoryName())
- end
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment