Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maxFillSlot = 10
- sleepDelay = 0.1
- function Eject(slotNo)
- turtle.select(slotNo)
- while (turtle.getItemCount(slotNo)~=0) do
- --trying to put front
- --turtle.drop()
- --trying to put down
- turtle.dropDown()
- --waiting
- sleep(sleepDelay)
- end
- end
- --clear all
- for i=1,16 do
- Eject(i)
- end
- --main loop
- while true do
- --fill exactly 3 stacks: 1, 2, 3
- turtle.select(1)
- turtle.suckUp()
- while (turtle.getItemCount(1)<maxFillSlot*3) do
- sleep(sleepDelay)
- turtle.suckUp()
- end
- turtle.transferTo(2,maxFillSlot)
- turtle.transferTo(3,maxFillSlot)
- for i=4,16 do
- Eject(i)
- end
- --until empty try to dropDown items
- while (turtle.craft()) do
- Eject(16)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement