From ee2d0cd7d6c905062429502c8d49b463c4e45bcc Mon Sep 17 00:00:00 2001 From: brulijam Date: Fri, 31 May 2024 22:32:06 +0000 Subject: [PATCH] Update src/main/programs/turtle-roomCreator.lua --- src/main/programs/turtle-roomCreator.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/programs/turtle-roomCreator.lua b/src/main/programs/turtle-roomCreator.lua index cdde1cf..1c96bf7 100644 --- a/src/main/programs/turtle-roomCreator.lua +++ b/src/main/programs/turtle-roomCreator.lua @@ -4,12 +4,12 @@ function excavate(depth, width, height) -- Digging a layer for w = 1, width do -- Digging a row - for d = 1, depth do + for d = 1, depth-1 do turtle.dig() -- Digging forward turtle.forward() -- Moving forward end --move to start of row - for d = 1, depth do + for d = 1, depth-1 do turtle.back() end @@ -18,7 +18,7 @@ function excavate(depth, width, height) turtle.turnRight() turtle.dig() turtle.forward() - turte.turnLeft() + turtle.turnLeft() end end @@ -31,7 +31,7 @@ function excavate(depth, width, height) --go to next layer if not last layer if h