Advertisement
Ezteyh

Untitled

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