Advertisement
ChicagoFire3

Quary

Jun 8th, 2025 (edited)
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | Gaming | 0 0
  1. require "GenUtil"
  2.  
  3. local straight = 0
  4. local depth = 0
  5. local right = 0
  6.  
  7. local x2 = straight-1
  8. local y2 = depth
  9. local z2 = right
  10.  
  11. function CheckDig()
  12.   local count = turtle.getItemCount(16)
  13.   if count > 0 then
  14.     turtle.select(1)
  15.     turtle.placeUp()
  16.     EmptyUp(1)
  17.   end
  18. end
  19.  
  20. local GoRight = true;
  21. local Reverse = true;
  22.  
  23. while y2 > 0 do
  24.   y2 = y2-1
  25.   turtle.digDown()
  26.   turtle.down()
  27.  
  28.   while z2 > 0 do
  29.     z2 = z2-1
  30.     while x2 > 0 do
  31.       x2 = x2-1
  32.       CheckDig()
  33.       turtle.dig()
  34.       turtle.forward()
  35.     end
  36.     x2 = straight-1
  37.     if not (z2 == 0) then
  38.       if GoRight then
  39.         turtle.turnRight()
  40.         turtle.dig()
  41.         turtle.forward()
  42.         turtle.turnRight()
  43.         GoRight = not GoRight
  44.       else
  45.         turtle.turnLeft()
  46.         turtle.dig()
  47.         turtle.forward()
  48.         turtle.turnLeft()
  49.         GoRight = not GoRight
  50.       end
  51.     end
  52.   end
  53.   turtle.turnRight()
  54.   turtle.turnRight()
  55.   z2 = right
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement