.
This commit is contained in:
parent
33c17d25e7
commit
06d793d43c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user