This commit is contained in:
Julian Brammer 2024-06-17 03:40:08 +02:00
parent 68f39af54b
commit e704ba982f

View File

@ -8,6 +8,12 @@ local toPlant = {
[3] = "minecraft:carrot",
}
local toCollect = {
[1] = "minecraft:wheat",
[2] = "minecraft:potato",
[3] = "minecraft:carrot",
}
local function doField()
turtle.up()
@ -72,6 +78,27 @@ local function kiss()
turtle.turnLeft()
end
end
-- sort items away
turtle.forward(9)
turtle.turnRight()
turtle.down()
--store wheat
for i=1, #toCollect do
turtle.forward()
for j=4, 16
turtle.select(i)
itemDetail = turtle.getItemDetail()
if itemDetail ~= nil then
if itemDetail.name == toCollect[i] then
turtle.dropDown()
end
end
end
end
end