Advertisement
Epolopsy

Untitled

May 19th, 2022 (edited)
713
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function bedrockChecker()
  2.     booly, data = turtle.inspectDown()
  3.     if (data.name) == "minecraft:bedrock" then
  4.         return 1
  5.     else
  6.         return 0
  7.     end
  8. end
  9.  
  10. function digDown()
  11.     isBedrock = bedrockChecker()
  12.     i = 0
  13.     while isBedrock == 0 do
  14.         turtle.digDown()
  15.         turtle.down()
  16.         i = i + 1
  17.         isBedrock = bedrockChecker()
  18.     end
  19.     repeat
  20.         turtle.up()
  21.         i = i - 1
  22.     until (i == 0)
  23. end
  24.      
  25. function moveForward()
  26.     turtle.dig()
  27.     turtle.forward()
  28. end
  29.  
  30. function chunkQuarryLength(length)
  31.     for s = length, 1, -1
  32.     do
  33.         digDown()
  34.         moveForward()
  35.         print(s)
  36.     end
  37. end
  38.  
  39. function fullQuarry(size)
  40.     for w = size, 1, -1
  41.     do
  42.         chunkQuarryLength(size)
  43.         turtle.turnLeft()
  44.         turtle.forward()
  45.         turtle.turnRight()
  46.         for a = size, 1, -1
  47.         do
  48.             turtle.back()
  49.         end
  50.     end
  51. end
  52. turtle.refuel()
  53. --fullQuarry(4)
  54.  
  55. function digBigger()
  56.     for w = 4, 1, -1
  57.     do
  58.         turtle.digDown()
  59.         turtle.forward()
  60.         turtle.digDown()
  61.         turtle.back()
  62.         turtle.turnRight()
  63.         turtle.forward()
  64.         turtle.digDown()
  65.         turtle.back()
  66.         turtle.turnLeft()
  67.         turtle.turnLeft()
  68.         turtle.forward()
  69.         turtle.digDown()
  70.         turtle.turnRight()
  71.         turtle.forward()
  72.         turtle.turnRight()
  73.         turtle.back()
  74.         turtle.back()
  75.     end
  76.     turtle.digDown()
  77.     turtle.down()
  78. end
  79.  
  80.  
  81. function digDownBigger()
  82.     isBedrock = 0
  83.     while isBedrock == 0 do
  84.     digBigger()
  85.     isBedrock = bedrockChecker()
  86.     end
  87. end
  88.  
  89. digDownBigger()
Advertisement
RAW Paste Data Copied
Advertisement