Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.up()
- function dig()
- turtle.dig()
- sleep(0.2)
- if turtle.detect() == true then
- dig()
- print("Gravel")
- end
- end
- function digUp()
- turtle.digUp()
- sleep(0.2)
- if turtle.detectUp() == true then
- digUp()
- print("Gravel")
- end
- end
- function digDown()
- turtle.digDown()
- end
- x=0
- while x < 64 do
- dig()
- turtle.forward()
- digUp()
- digDown()
- x=x+1
- end
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- while x > 0 do
- turtle.forward()
- x=x-1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement