Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- height = 0
- if turtle.detect() then
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- height = height + 1
- turtle.digUp()
- turtle.up()
- end
- while height > 0 do
- height = height - 1
- tutle.down()
- end
- turtle.digDown()
- turtle.back()
- turtle.turnLeft()
- turtle.drop()
- turtle.drop()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment