Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Put the turtle in the bottom left of the shape
- local hit = false
- while true do
- if turtle.detect() do
- if hit do
- turtle.right()
- turtle.forward()
- turtle.left()
- hit = false
- else
- turtle.right()
- turtle.right()
- hit = true
- end
- end
- turtle.forward()
- turtle.digDown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement