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