summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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