From c2a16c8c62926225249db88a862257167beba64e Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 4 Apr 2024 01:41:45 +0100 Subject: launch cactus --- cactus.lua | 23 +++++++++++++++-------- 1 file 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 -- cgit v1.2.3