From 32a35293402f8a233c49da8edbd83c98ab616639 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 4 Apr 2024 01:38:37 +0100 Subject: launch cactus --- cactus.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cactus.lua b/cactus.lua index 08df1aa..57b457e 100644 --- a/cactus.lua +++ b/cactus.lua @@ -104,7 +104,13 @@ end local datum = vector.new(-18, 128, -1837) moveto(datum) -turn_to_face(vector.new(0,0,+1)) +turn_to_face(vector.new(0,0,1)) + +local function check_column() + if turtle.detectDown() then + for i =1,4 do turtle.turnRight() end + end +end repeat do_column() -- cgit v1.2.3