asd
This commit is contained in:
parent
72975f35d1
commit
5949cc22fb
@ -213,7 +213,7 @@ local function mineChunk()
|
|||||||
--turn back and return to start of row if not last row
|
--turn back and return to start of row if not last row
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
if i<state["dataGoalRows"] then
|
if i<state["dataGoalRows"]-1 then
|
||||||
while not turtle.detect() do
|
while not turtle.detect() do
|
||||||
turtle.forward()
|
turtle.forward()
|
||||||
end
|
end
|
||||||
@ -222,15 +222,14 @@ local function mineChunk()
|
|||||||
|
|
||||||
--go to next row
|
--go to next row
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
for j=0, 2 do
|
for j=0, 2 doe
|
||||||
turtle.dig()
|
turtle.dig()
|
||||||
turtle.forward()
|
turtle.forward()
|
||||||
turtle.digUp()
|
turtle.digUp()
|
||||||
turtle.digDown()
|
turtle.digDown()
|
||||||
end
|
end
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
turtle.dig()
|
|
||||||
turtle.forward()
|
|
||||||
|
|
||||||
state["dataCurrentRow"] = i+1
|
state["dataCurrentRow"] = i+1
|
||||||
state["dataCurrentPathProgress"] = 0
|
state["dataCurrentPathProgress"] = 0
|
||||||
@ -255,7 +254,6 @@ local function mineFibo()
|
|||||||
turtle.digUp()
|
turtle.digUp()
|
||||||
turtle.digDown()
|
turtle.digDown()
|
||||||
end
|
end
|
||||||
turtle.turnRight()
|
|
||||||
|
|
||||||
--get next fibo number
|
--get next fibo number
|
||||||
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
|
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user