.
This commit is contained in:
parent
06d793d43c
commit
1d8031b609
@ -8,23 +8,6 @@ local toPlant = {
|
||||
[3] = "minecraft:carrot",
|
||||
}
|
||||
|
||||
function selectSeed()
|
||||
for i=1, 16 do
|
||||
turtle.select(i)
|
||||
itemDetail = turtle.getItemDetail()
|
||||
currentSeed = currentSeed + 1
|
||||
if currentSeed > 4 then
|
||||
currentSeed = 1
|
||||
end
|
||||
if itemDetail ~= nil then
|
||||
if itemDetail.name == toPlant[currentSeed] then
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
print("No seeds left")
|
||||
end
|
||||
|
||||
|
||||
local function doField()
|
||||
turtle.up()
|
||||
@ -72,7 +55,8 @@ local function kiss()
|
||||
turtle.forward()
|
||||
turtle.digDown()
|
||||
turtle.suckDown()
|
||||
selectSeed()
|
||||
turtle.select(currentSeed)
|
||||
currentSeed = currentSeed + 1
|
||||
turtle.placeDown()
|
||||
end
|
||||
if i%2==1 then
|
||||
|
Loading…
Reference in New Issue
Block a user