updated miner
This commit is contained in:
parent
95116c24bd
commit
4404339d4b
@ -12,7 +12,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function init(height)
|
function init(height)
|
||||||
local height = read() -- zb 172
|
local height = read()
|
||||||
local a = math.random(4,8)
|
local a = math.random(4,8)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -21,16 +21,19 @@ local function digLayer(a)
|
|||||||
for i=1, a do
|
for i=1, a do
|
||||||
for j=1, a-1 do
|
for j=1, a-1 do
|
||||||
turtle.digDown()
|
turtle.digDown()
|
||||||
|
turtle.dig()
|
||||||
turtle.forward()
|
turtle.forward()
|
||||||
end
|
end
|
||||||
turtle.digDown()
|
turtle.digDown()
|
||||||
if i<a then
|
if i<a then
|
||||||
if i%2==0 then
|
if i%2==0 then
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
|
turtle.dig()
|
||||||
turtle.forward()
|
turtle.forward()
|
||||||
turtle.turnLeft()
|
turtle.turnLeft()
|
||||||
else
|
else
|
||||||
turtle.turnRight()
|
turtle.turnRight()
|
||||||
|
turtle.dig()
|
||||||
turtle.forward()
|
turtle.forward()
|
||||||
turtle.turnRight()
|
turtle.turnRight()
|
||||||
end
|
end
|
||||||
@ -53,4 +56,4 @@ local function digComplete(a, height)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
digComplete(4, 4)
|
digComplete(5, 4)
|
Loading…
Reference in New Issue
Block a user