Advertisement
Ezteyh

Untitled

Jun 18th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. function four1()
  2. turtle.turnright()
  3. turtle.forward()
  4. turtle.turnRight()
  5. while not turtle.detect() do
  6. turtle.forward()
  7. end
  8. end
  9.  
  10. function flush()
  11. for i = 1, 16, 1 do
  12. turtle.select(i)
  13. turtle.dropDown()
  14. end
  15. turtle.select(1)
  16. end
  17.  
  18. function four2()
  19. turtle.back()
  20. turtle.turnLeft()
  21. turtle.forward()
  22. turtle.forward()
  23. turtle.turnRight()
  24. turtle.forward()
  25. end
  26.  
  27. function retour()
  28. turtle.back()
  29. turtle.turnRight()
  30. turtle.forward()
  31. turtle.forward()
  32. turtle.turnRight()
  33. while not turtle.detect() do
  34. turtle.forward()
  35. end
  36. turtle.turnRight()
  37. end
  38.  
  39. while (1) do
  40. four1()
  41. flush()
  42. four2()
  43. flush()
  44. retour()
  45. sleep(180)
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement