Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rednet.broadcast("ReturnRight")
- i=0
- function forward()
- if turtle.detect() == true then
- repeat
- sleep(1)
- until turtle.detect() == false
- end
- if turtle.detect() == false then
- turtle.forward()
- i=i+1
- end
- end
- while true do
- turtle.turnRight()
- repeat
- forward()
- until i==16
- turtle.turnRight()
- error()
- end
Advertisement
Add Comment
Please, Sign In to add comment