Guest User

var

a guest
Apr 7th, 2020
257
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local i,j,ok
  2. i=1
  3. j=1
  4. local x
  5. local n
  6. n=5
  7. x=1
  8. while x<= n do
  9. i=1
  10. while i<=n do
  11. j=1
  12.   while j<=n-1 do
  13.    local a,x=turtle.inspect()
  14.    a=x.name
  15.    if a=="minecraft:bedrock" then
  16.    if j<(n-1) then
  17.    turtle.up()
  18.    turtle.forward()
  19.    turtle.forward()
  20.    turtle.digDown()
  21.    turtle.down()
  22.    j=j+1
  23.    ok=0
  24.    else
  25.    turtle.up()
  26.    turtle.forward()
  27.    ok=1
  28.    end
  29.    else turtle.dig()
  30.    turtle.forward()
  31.    end
  32.     j=j+1
  33.     end
  34.  if i==5 then
  35.  turtle.turnRight()
  36.  turtle.turnRight()
  37.  else
  38.  if i%2==0 then
  39.    turtle.turnLeft()
  40.    turtle.dig()
  41.    turtle.forward()
  42.    turtle.turnLeft()
  43.   else
  44.   if ok==1 then
  45.   turtle.turnRight()
  46.   turtle.forward()
  47.   turtle.digDown()
  48.   turtle.turnRight()
  49.   turtle.down()
  50.   else
  51. turtle.turnLeft()
  52.     x=turtle.inspect()
  53.   a=x.name
  54.   if a=="minecraft:bedrock" then
  55.   turtle.up()
  56.   turtle.forward()
  57.   turtle.turnLeft()
  58.   turtle.forward()
  59.   turtle.down()
  60.   i=i+1
  61.   else
  62.     turtle.turnRight()
  63.     turtle.dig()
  64.     turtle.forward()
  65.     turtle.turnRight()
  66.     end
  67.     end
  68.     end
  69.     end
  70.    i=i+1
  71.    end
  72. turtle.digDown()
  73. turtle.down()
  74. x=x+1
  75. end
RAW Paste Data