Grochonou

Untitled

Feb 14th, 2026
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local distance = 10
  2. turtle.select(16)
  3. turtle.refuel() -- Securite fuel
  4.  
  5. while true do
  6. print("Recolte avec support...")
  7. turtle.turnRight() -- Face a la ligne
  8.  
  9. for i = 1, distance do
  10. turtle.turnLeft() -- Face au buisson (et au mur derriere)
  11.  
  12. -- On s'assure d'avoir la main vide (Slot 1)
  13. turtle.select(1)
  14.  
  15. -- LA MAGIE OPERE ICI :
  16. -- Elle vise le mur du fond, mais touche le buisson
  17. turtle.place()
  18. turtle.suck()
  19.  
  20. turtle.turnRight()
  21.  
  22. if i < distance then
  23. turtle.forward()
  24. end
  25. end
  26.  
  27. -- RETOUR
  28. turtle.turnLeft()
  29. turtle.turnLeft()
  30. for i = 1, distance - 1 do turtle.forward() end
  31.  
  32. -- VIDAGE
  33. turtle.turnLeft()
  34. turtle.turnLeft()
  35. for s = 1, 15 do turtle.select(s) turtle.dropDown() end
  36. turtle.turnLeft()
  37.  
  38. sleep(600)
  39. end
Advertisement
Add Comment
Please, Sign In to add comment