From c5b562d81ce17d017bf46d5ec7f9c936ca688370 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 28 Jun 2022 00:08:05 +0100 Subject: hole --- hole.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hole.lua b/hole.lua index 53925e7..7a8efa3 100644 --- a/hole.lua +++ b/hole.lua @@ -37,4 +37,10 @@ while true do laser.fire(yaw,pitch,4) end end + if #targets == 0 then + for i = 1,5 do + if turtle.detectDown() then break end + assert(turtle.down()) + end + end end -- cgit v1.2.3