update treeFarmer

This commit is contained in:
Julian Brammer 2024-06-02 16:56:05 +02:00
parent e80c8b7a78
commit 470bcac06f

View File

@ -54,7 +54,15 @@ local function placeTree()
if itemDetail.name == "minecraft:oak_sapling" then if itemDetail.name == "minecraft:oak_sapling" then
local blockFound, blockData = turtle.inspect() local blockFound, blockData = turtle.inspect()
if not blockFound then if not blockFound then
turtle.place() turtle.up()
turtle.forward()
for i=0, 3 do
turtle.placeDown()
turtle.forward()
turtle.turnRight()
end
turtle.back()
turtle.down()
end end
end end
end end