Syntax
This commit is contained in:
parent
bd3b15a1e8
commit
75cd0336b8
@ -499,7 +499,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
|
|||||||
faceDir(0)
|
faceDir(0)
|
||||||
while (targetX > x) do
|
while (targetX > x) do
|
||||||
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
||||||
x += 1
|
x = x + 1
|
||||||
extraaction()
|
extraaction()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -507,7 +507,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
|
|||||||
faceDir(2)
|
faceDir(2)
|
||||||
while (targetX < x) do
|
while (targetX < x) do
|
||||||
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
||||||
x -= 1
|
x = x - 1
|
||||||
extraaction()
|
extraaction()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -516,7 +516,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
|
|||||||
faceDir(1)
|
faceDir(1)
|
||||||
while (targetZ > z) do
|
while (targetZ > z) do
|
||||||
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
||||||
z += 1
|
z = z + 1
|
||||||
eztraaction()
|
eztraaction()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -524,7 +524,7 @@ function goToCoordXZ(targetX, targetZ, extraaction)
|
|||||||
faceDir(3)
|
faceDir(3)
|
||||||
while (targetZ < z) do
|
while (targetZ < z) do
|
||||||
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
moveSafe(turtle.forward, turtle.inspect, turtle.dig)
|
||||||
z -= 1
|
z = z - 1
|
||||||
eztraaction()
|
eztraaction()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user