did stuff
This commit is contained in:
parent
48ca1db268
commit
bc874c63ca
@ -137,14 +137,14 @@ local function goToPosition(toR, toX, toY, toZ)
|
|||||||
|
|
||||||
--go to lastValidX
|
--go to lastValidX
|
||||||
while pos["x"] < toX do
|
while pos["x"] < toX do
|
||||||
while not pos["r"] == 3 do
|
while pos["r"] ~= 3 do
|
||||||
right()
|
right()
|
||||||
end
|
end
|
||||||
secureDig()
|
secureDig()
|
||||||
forward()
|
forward()
|
||||||
end
|
end
|
||||||
while pos["x"] > toX do
|
while pos["x"] > toX do
|
||||||
while not pos["r"] == 1 do
|
while pos["r"] ~= 1 do
|
||||||
right()
|
right()
|
||||||
end
|
end
|
||||||
secureDig()
|
secureDig()
|
||||||
@ -153,14 +153,14 @@ local function goToPosition(toR, toX, toY, toZ)
|
|||||||
|
|
||||||
--go to lastValidZ
|
--go to lastValidZ
|
||||||
while pos["z"] < toZ do
|
while pos["z"] < toZ do
|
||||||
while not pos["r"] == 0 do
|
while pos["r"] ~= 0 do
|
||||||
right()
|
right()
|
||||||
end
|
end
|
||||||
secureDig()
|
secureDig()
|
||||||
forward()
|
forward()
|
||||||
end
|
end
|
||||||
while pos["z"] > toZ do
|
while pos["z"] > toZ do
|
||||||
while not pos["r"] == 2 do
|
while pos["r"] ~= 2 do
|
||||||
right()
|
right()
|
||||||
end
|
end
|
||||||
secureDig()
|
secureDig()
|
||||||
@ -168,7 +168,7 @@ local function goToPosition(toR, toX, toY, toZ)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--rotate in right direction
|
--rotate in right direction
|
||||||
while not pos["r"] == toR do
|
while pos["r"] ~= toR do
|
||||||
right()
|
right()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user