09glich

Turtle:MineBigHole

Jun 8th, 2023
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. local SizeX,SizeY,SizeZ = 5,5,5
  2.  
  3. local ZDig = function()
  4.     turtle.dig()
  5.     turtle.forward()
  6. end
  7.  
  8. local XDigSection = function(Inverted)
  9.     ZDig()
  10.     if Inverted = true then
  11.         turtle.turnLeft()
  12.         turtle.dig()
  13.         turtle.forward()
  14.         turtle.turnLeft()
  15.     else
  16.         turtle.turnLeft()
  17.         turtle.dig()
  18.         turtle.forward()
  19.         turtle.turnLeft()
  20.     end
  21.     ZDig()
  22.     if Inverted = false then
  23.         turtle.turnLeft()
  24.         turtle.dig()
  25.         turtle.forward()
  26.         turtle.turnLeft()
  27.     else
  28.         turtle.turnLeft()
  29.         turtle.dig()
  30.         turtle.forward()
  31.         turtle.turnLeft()
  32.     end
  33. end
  34.  
  35. for Y = 1,SizeY do
  36.     if Y % 2 == 1 then
  37.         XDigSection(false)
  38.     else
  39.         XDigSection(true)
  40.     end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment