Help With Enchantments

{ "description": "hi", "supported_items": "#minecraft:arrows", "weight": 1, "max_level": 1, "min_cost": { "base": 0, "per_level_above_first": 0 }, "max_cost": { "base": 0, "per_level_above_first": 0 }, "anvil_cost": 0, "slots": [ "any" ], "effects": { "minecraft:post_attack": [ { "effect": { "type": "minecraft:run_function", "function": "pack:arrows/ancient_arrow/hit" }, "enchanted": "attacker", "affected": "attacker" } ] } } This is my enchantment, but when i add it to my arrows crafting recipe, it dosent work..? why? This is my Recipe "type": "minecraft:crafting_shaped", "pattern": [ " ", " $#", " " ], "key": { "#": "minecraft:diamond", "$": "minecraft:arrow" }, "result": { "id": "minecraft:arrow", "components": { "item_model": "minecraft:ancient_arrow", "custom_name": "{\"text\": \"Ancient Arrow\", \"color\": \"dark_aqua\", \"italic\": false}", "enchantments": { "pack:ancientarrow": 1 } }, "count": 1 } }
Continue to help post