diff --git a/src/main/programs/turtle-treeFarmer.lua b/src/main/programs/turtle-treeFarmer.lua index 7628127..9665edf 100644 --- a/src/main/programs/turtle-treeFarmer.lua +++ b/src/main/programs/turtle-treeFarmer.lua @@ -59,6 +59,19 @@ local function placeTree() end end +local function emptyWood() + for i=1, 16 do + turtle.select(i) + itemDetail = turtle.getItemDetail() + if itemDetail ~= nil then + if itemDetail.name == "minecraft:oak_log" then + turtle.refuel() + turtle.dropDown() + end + end + end +end + function main() while true do blockFound, blockData = turtle.inspect() @@ -66,6 +79,7 @@ function main() recursiveTreeFarming() sleep(1) placeTree() + emptyInventory() end sleep(10) print("waiting...")