Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if turtle.detect() == true then
- x = x+1
- turtle.digUp()
- turtle.dig()
- turtle.digDown()
- turtle.forward()
- else
- turtle.forward()
- end
- if x == 10 then
- turtle.turnRight()
- turtle.dig()
- turtle.select(16)
- if turtle.getItemCount(16) == 0 then
- sleep()
- end
- turtle.place()
- turtle.turnLeft()
- turtle.select(1)
- x= 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement