This commit is contained in:
Julian Brammer 2024-06-02 17:22:00 +02:00
parent 0fb089db5e
commit b71d3f666b

View File

@ -86,14 +86,18 @@ function main()
if fallingTreeModUsed then if fallingTreeModUsed then
while true do while true do
blockFound, blockData = turtle.inspect() blockFound, blockData = turtle.inspect()
if isWood(blockData) then if blockFound then
turtle.dig() if isWood(blockData) then
sleep(1) turtle.dig()
sleep(1)
placeTree()
emptyInventory()
end
print("waiting for tree...")
sleep(10)
else
placeTree() placeTree()
emptyInventory()
end end
print("waiting for tree...")
sleep(10)
end end
else else
while true do while true do