.
This commit is contained in:
parent
71fee0ae95
commit
692049a22d
@ -2,15 +2,17 @@
|
|||||||
|
|
||||||
local function mineStraightLine(length)
|
local function mineStraightLine(length)
|
||||||
slot = 1
|
slot = 1
|
||||||
turtle.digUp()
|
for i=1, length do
|
||||||
turtle.dig()
|
turtle.digUp()
|
||||||
turtle.forward()
|
turtle.dig()
|
||||||
if not turtle.detectDown()
|
turtle.forward()
|
||||||
if turtle.getItemCount == 0 then
|
if not turtle.detectDown() then
|
||||||
slot = slot + 1
|
if turtle.getItemCount == 0 then
|
||||||
turtle.select(slot)
|
slot = slot + 1
|
||||||
|
turtle.select(slot)
|
||||||
|
end
|
||||||
|
turtle.placeDown()
|
||||||
end
|
end
|
||||||
turtle.placeDown()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user