Advertisement
Yorbo

Untitled

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