Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = 1
- turtle.select(1)
- turtle.forward() -- Move into hole
- while(true)
- do
- while (turtle.detectDown() == false)
- do
- if(turtle.getItemCount(x)==0)
- then
- x=x+1
- if(x==10) then
- x = 1
- end
- turtle.select(x)
- end
- turtle.placeDown()
- turtle.forward()
- if(turtle.detectDown() == true)
- then
- turtle.back()
- turtle.turnLeft()
- turtle.forward()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement