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