This commit is contained in:
Julian Brammer 2024-06-17 03:05:20 +02:00
parent 33c17d25e7
commit 06d793d43c

View File

@ -12,15 +12,15 @@ function selectSeed()
for i=1, 16 do for i=1, 16 do
turtle.select(i) turtle.select(i)
itemDetail = turtle.getItemDetail() itemDetail = turtle.getItemDetail()
currentSeed = currentSeed + 1
if currentSeed > 4 then
currentSeed = 1
end
if itemDetail ~= nil then if itemDetail ~= nil then
if itemDetail.name == toPlant[currentSeed] then if itemDetail.name == toPlant[currentSeed] then
return return
end end
end end
currentSeed = currentSeed + 1
if currentSeed > 4 then
currentSeed = 1
end
end end
print("No seeds left") print("No seeds left")
end end