Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- turtle.turnRight()
- this = turtle.detect()
- if this == false then
- turtle.forward()
- else
- turtle.turnLeft()
- this2 = turtle.detect()
- if this2 == true then
- turtle.turnRight()
- turtle.turnRight()
- else
- turtle.forward()
- end
- end
- if turtle.detectDown() == false then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement