.
This commit is contained in:
parent
412c0d491d
commit
71fee0ae95
@ -23,7 +23,7 @@ local copyList = {
|
|||||||
[15] = "/brulijam/files/shape-hex-64-20.svg",
|
[15] = "/brulijam/files/shape-hex-64-20.svg",
|
||||||
[16] = "/brulijam/files/shape-hex-64.svg",
|
[16] = "/brulijam/files/shape-hex-64.svg",
|
||||||
[17] = "/brulijam/t-farmer.lua",
|
[17] = "/brulijam/t-farmer.lua",
|
||||||
|
[18] = "/brulijam/t-path-miner.lua",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
18
src/brulijam/t-path-miner.lua
Normal file
18
src/brulijam/t-path-miner.lua
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
local function mineStraightLine(length)
|
||||||
|
slot = 1
|
||||||
|
turtle.digUp()
|
||||||
|
turtle.dig()
|
||||||
|
turtle.forward()
|
||||||
|
if not turtle.detectDown()
|
||||||
|
if turtle.getItemCount == 0 then
|
||||||
|
slot = slot + 1
|
||||||
|
turtle.select(slot)
|
||||||
|
end
|
||||||
|
turtle.placeDown()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
mineStraightLine(500)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user