This commit is contained in:
Julian Brammer 2024-06-17 02:36:06 +02:00
parent 59261590b3
commit ad75150a6b

View File

@ -23,55 +23,49 @@ local function selectSeed()
end end
local function doField()
turtle.up()
--do 2 rows of fields
turtle.up() for i=1, 2 do
--do 3 rows
--do 2 rows of fields for j=1, 3 do
for i=1, 2 do --do one row
--do 3 rows for k=1, 2 do
for j=1, 3 do for l=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() end
selectSeed()
turtle.placeDown()
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
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
end end
local function main() local function main()
doField()
end end