Advertisement
Yorbo

Untitled

Oct 28th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ---
  2. --- Created by yannb.
  3. --- DateTime: 28/10/2021 22:50
  4. ---
  5.  
  6. function build_rows(steps)
  7. repetition = 1
  8. while 0 == 0 do
  9. for _ = 1, repetition * 6, 1 do
  10. turtle.forward()
  11. end
  12. turtle.turnLeft()
  13. turtle.forward()
  14. turtle.turnRight()
  15. turtle.up()
  16. for _ = 1, steps, 1 do
  17. for _ = 1, 4, 1 do
  18. for _ = 1, 3, 1 do
  19. turtle.forward()
  20. turtle.placeDown()
  21. end
  22. turtle.forward()
  23. turtle.turnLeft()
  24. end
  25. turtle.up()
  26. end
  27. turtle.forward()
  28. turtle.turnRight()
  29. turtle.forward()
  30. turtle.turnLeft()
  31. turtle.turnLeft()
  32. for _ = 1, steps, 1 do
  33. turtle.down()
  34. turtle.dig()
  35. end
  36. turtle.turnRight()
  37. turtle.down()
  38. for _ = 1, repetition * 6, 1 do
  39. turtle.back()
  40. end
  41. sleep(10)
  42. repetition = repetition + 1
  43. end
  44. end
  45.  
  46. build_rows(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement