Advertisement
Yorbo

Untitled

Oct 28th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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 True do
  9. for _ = 1, repetition * 6, 1 do
  10. turtle.forward()
  11. end
  12. turtle.up()
  13. for _ = 1, steps, 1 do
  14. for _ = 1, 4, 1 do
  15. for _ = 1, 3, 1 do
  16. turtle.forward()
  17. turtle.placeDown()
  18. end
  19. turtle.forward()
  20. turtle.turnLeft()
  21. end
  22. turtle.up()
  23. end
  24. turtle.forward()
  25. turtle.turnRight()
  26. turtle.forward()
  27. turtle.turnLeft()
  28. turtle.turnLeft()
  29. for _ = 1, steps, 1 do
  30. turtle.down()
  31. turtle.dig()
  32. end
  33. turtle.turnRight()
  34. for _ = 1, repetition * 6, 1 do
  35. turtle.back()
  36. end
  37. repetition = repetition + 1
  38. end
  39. end
  40.  
  41. build_rows(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement