updated miner
This commit is contained in:
parent
92dd4866da
commit
7c9e4245d4
@ -19,29 +19,29 @@ end
|
||||
|
||||
local function digLayer(a)
|
||||
for i=1, a do
|
||||
for j=1, a do
|
||||
for j=1, a-1 do
|
||||
turtle.digDown()
|
||||
turtle.forward()
|
||||
end
|
||||
turtle.digDown()
|
||||
if i<a then
|
||||
if i%2==0 then
|
||||
turtle.turnRight()
|
||||
turtle.forward()
|
||||
turtle.turnRight()
|
||||
turtle.turnLeft()
|
||||
turtle.forward()
|
||||
turtle.turnLeft()
|
||||
else
|
||||
turtle.turnLeft()
|
||||
turtle.forward()
|
||||
turtle.turnLeft()
|
||||
turtle.turnRight()
|
||||
turtle.forward()
|
||||
turtle.turnRight()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if i%2==0 then
|
||||
if a%2==0 then
|
||||
turtle.turnRight()
|
||||
turtle.turnRight()
|
||||
else
|
||||
turtle.turnLeft()
|
||||
turtle.turnRight()
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user