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