.
This commit is contained in:
parent
418c3e782d
commit
59261590b3
@ -27,32 +27,38 @@ end
|
|||||||
|
|
||||||
turtle.up()
|
turtle.up()
|
||||||
|
|
||||||
--do 3 rows
|
--do 2 rows of fields
|
||||||
for i=1, 3 do
|
for i=1, 2 do
|
||||||
--do one row
|
--do 3 rows
|
||||||
for j=1, 2 do
|
for j=1, 3 do
|
||||||
for k=1, 3 do
|
--do one row
|
||||||
turtle.forward()
|
for k=1, 2 do
|
||||||
local blockFound, blockData = turtle.inspectDown()
|
for l=1, 3 do
|
||||||
if blockFound then
|
turtle.forward()
|
||||||
turtle.digDown()
|
local blockFound, blockData = turtle.inspectDown()
|
||||||
turtle.suckDown()
|
if blockFound then
|
||||||
selectSeed()
|
turtle.digDown()
|
||||||
turtle.placeDown()
|
turtle.suckDown()
|
||||||
|
selectSeed()
|
||||||
|
turtle.placeDown()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
turtle.forward()
|
||||||
|
end
|
||||||
|
-- move to next row
|
||||||
|
if i%2==1 then
|
||||||
|
turtle.turnRight()
|
||||||
|
turtle.forward()
|
||||||
|
turtle.turnRight()
|
||||||
|
else
|
||||||
|
turtle.turnLeft()
|
||||||
|
turtle.forward()
|
||||||
|
turtle.turnLeft()
|
||||||
end
|
end
|
||||||
turtle.forward()
|
|
||||||
end
|
|
||||||
-- move to next row
|
|
||||||
if i%2==1 then
|
|
||||||
turtle.turnRight()
|
|
||||||
turtle.forward()
|
|
||||||
turtle.turnRight()
|
|
||||||
else
|
|
||||||
turtle.turnLeft()
|
|
||||||
turtle.forward()
|
|
||||||
turtle.turnLeft()
|
|
||||||
end
|
end
|
||||||
|
turtle.turnLeft()
|
||||||
|
turtle.forward()
|
||||||
|
turtle.turnRight()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user