Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function follow()
- turtle.forward()
- if not turtle.detectDown() then
- turtle.back()
- turtle.turnLeft()
- if not turtle.forward()or not turtle.detectDown() then
- turtle.back()
- turtle.back()
- if not turtle.detectDown() then
- return false
- else
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- return true
- end
- end
- while follow do
- end
Advertisement
Add Comment
Please, Sign In to add comment