function growTree() end function chopTree() end function clearPrint(text) term.clear() term.setCursorPos(1, 1) print(text) end function clear() term.clear() term.setCursorPos(1, 1) end while true do local dtct, data = turtle.inspect() if dtct then local block = data.name if block:find("sapling") then elseif block:find("log") or block:find("log") then else clearPrint("Bilinmeyen blok, lütfen cihazın önünü temizleyin") print("before") os.pullEvent('key') print("next") end else growTree() end end