Solbaify

Quarry

Feb 9th, 2023
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. function digDown()
  2.   while turtle.detectDown() do
  3.     turtle.digDown()
  4.   end
  5. end
  6.  
  7. function digForward()
  8.   while turtle.detect() do
  9.     turtle.dig()
  10.   end
  11.   turtle.forward()
  12. end
  13.  
  14. function digQuarry(depth)
  15.   for i = 1, depth do
  16.     digDown()
  17.     turtle.down()
  18.   end
  19.   for i = 1, depth do
  20.     for j = 1, 4 do
  21.       digForward()
  22.     end
  23.     turtle.turnRight()
  24.   end
  25.   for i = 1, depth do
  26.     turtle.up()
  27.   end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment