Update src/main/programs/turtle-roomCreator.lua
This commit is contained in:
parent
ec7fc3c566
commit
ee2d0cd7d6
@ -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<height then
|
||||
turte.digUp()
|
||||
turtle.digUp()
|
||||
turtle.up()
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user