summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-04 01:41:45 +0100
committerubq323 <ubq323@ubq323.website>2024-04-04 01:41:45 +0100
commitc2a16c8c62926225249db88a862257167beba64e (patch)
treeea8fa3a1662e347891416cbbde114cb79b870fd2
parent73f37636eb4ee7d5557f95c8935c4047900f8297 (diff)
launch cactus
-rw-r--r--cactus.lua23
1 files changed, 15 insertions, 8 deletions
diff --git a/cactus.lua b/cactus.lua
index 52b5b14..bea1eee 100644
--- a/cactus.lua
+++ b/cactus.lua
@@ -111,17 +111,24 @@ local function do_column()
for i =1,4 do turtle.turnRight() end
end
end
-
repeat
+ repeat
+ do_column()
+ move_linear(1)
+ until POS.z == -1826
do_column()
+ turn_right()
move_linear(1)
-until POS.z == -1826
-do_column()
-turn_right()
-move_linear(1)
-turn_right()
-repeat
+ turn_right()
+
+ repeat
+ do_column()
+ move_linear(1)
+ until POS.z == datum.z
do_column()
+ turn_left()
move_linear(1)
-until POS.z == datum.z
+ turn_left()
+
+until POS.x <= -29