RedoverPlayer

Turtle1

Apr 6th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. p = peripheral.wrap("left")
  2.  
  3. while true do
  4. if turtle.detect() then
  5. p.speak("cyka bliyat !")
  6.  
  7. if turtle.detectUp() == false then
  8. turtle.up()
  9. if turtle.detect() then
  10. turtle.down()
  11. turtle.turnRight()
  12. end
  13.  
  14. elseif turtle.detectDown() == false then
  15. turtle.down()
  16. if turtle.detect() then
  17. turtle.up()
  18. turtle.turnRight()
  19. end
  20.  
  21. else
  22. turtle.turnRight()
  23. end
  24.  
  25. else
  26. if turtle.detectDown() == false then
  27. turtle.down()
  28. end
  29. end
  30.  
  31. turtle.forward()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment