advancement wont run function

i made an advancement that detectes whenever the player has crafted the custom recipe which is as follows { "parent": "minecraft:recipes/root", "criteria": { "has_the_recipe": { "conditions": { "recipe_id": "crafting:draft" }, "trigger": "minecraft:recipe_crafted" }, "has_ingredients": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "items": [ "minecraft:amethyst_block", "minecraft:amethyst_block", "minecraft:blaze_rod", "minecraft:netherite_ingot", "gold_block", "minecraft:wither_skeleton_skull" ] } ] } } }, "requirements": [ [ "has_the_recipe", "has_ingredients" ] ], "rewards": { "function": "crow:staff/ss", "recipes": [] } } but, no matter how much i craft it, the function at the end doesnt run. the function works with the command /function but otherwise, theres no way to run it
Continue to help post