diff --git a/src/brulijam/sync.lua b/src/brulijam/sync.lua index 911cf68..77f08ff 100644 --- a/src/brulijam/sync.lua +++ b/src/brulijam/sync.lua @@ -23,7 +23,7 @@ local copyList = { [15] = "/brulijam/files/shape-hex-64-20.svg", [16] = "/brulijam/files/shape-hex-64.svg", [17] = "/brulijam/t-farmer.lua", - + [18] = "/brulijam/t-path-miner.lua", } diff --git a/src/brulijam/t-path-miner.lua b/src/brulijam/t-path-miner.lua new file mode 100644 index 0000000..2d8068c --- /dev/null +++ b/src/brulijam/t-path-miner.lua @@ -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) +