Advertisement
SryNotToxic

Untitled

Sep 1st, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. -- Quarry Parameters
  2. local depth = 122 -- Total depth of the shaft (63 to -59)
  3.  
  4. -- Main Quarry Loop
  5. for d = 1, depth do
  6. -- Clear above the turtle
  7. while turtle.detectUp() do
  8. turtle.digUp()
  9. end
  10.  
  11. -- Dig down and clear the way
  12. turtle.digDown()
  13. turtle.down()
  14.  
  15. -- Dig a 5x5 area
  16. for w = 1, 5 do
  17. for l = 1, 5 do
  18. turtle.dig()
  19. turtle.forward()
  20. end
  21.  
  22. if w < 5 then
  23. -- Turn for the next row
  24. if w % 2 == 1 then
  25. turtle.turnRight()
  26. turtle.dig()
  27. turtle.forward()
  28. turtle.turnRight()
  29. else
  30. turtle.turnLeft()
  31. turtle.dig()
  32. turtle.forward()
  33. turtle.turnLeft()
  34. end
  35. end
  36. end
  37.  
  38. -- Return to starting position
  39. for i = 1, 4 do
  40. turtle.back()
  41. end
  42.  
  43. -- Return to the surface
  44. turtle.up()
  45. end
  46. ZkyFct1ZkyFct1ZkyFct1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement