This commit is contained in:
Julian Brammer 2024-06-18 19:28:16 +02:00
parent 71fee0ae95
commit 692049a22d

View File

@ -2,10 +2,11 @@
local function mineStraightLine(length) local function mineStraightLine(length)
slot = 1 slot = 1
for i=1, length do
turtle.digUp() turtle.digUp()
turtle.dig() turtle.dig()
turtle.forward() turtle.forward()
if not turtle.detectDown() if not turtle.detectDown() then
if turtle.getItemCount == 0 then if turtle.getItemCount == 0 then
slot = slot + 1 slot = slot + 1
turtle.select(slot) turtle.select(slot)
@ -13,6 +14,7 @@ local function mineStraightLine(length)
turtle.placeDown() turtle.placeDown()
end end
end end
end
mineStraightLine(500) mineStraightLine(500)