From 1d8031b609633054c0f7bd0176b3fe0f74beb1e0 Mon Sep 17 00:00:00 2001 From: brulijam Date: Mon, 17 Jun 2024 03:12:54 +0200 Subject: [PATCH] . --- src/brulijam/t-farmer.lua | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/brulijam/t-farmer.lua b/src/brulijam/t-farmer.lua index 144f6e6..a1ec4ff 100644 --- a/src/brulijam/t-farmer.lua +++ b/src/brulijam/t-farmer.lua @@ -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