Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function spaceLeft()
- for i=1,9 do
- if turtle.getItemCount(i)==0 then
- return true
- end
- end
- return false
- end
- function Cycle()
- Forward=1
- while spaceLeft() do
- turtle.dig()
- turtle.forward()
- Forward=Forward+1
- end
- if spaceLeft()==false then
- turtle.turnLeft()
- turtle.turnLeft()
- end
- for i=1,Forward-1 do
- turtle.forward()
- end
- for dropSlot = 1, 9 do
- turtle.select(dropSlot)
- turtle.drop()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
- Cycle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement