advancement issue
so i made a custom enchantment and i got it to apply on my tools but now the issue is when i do this
Continue to help postjson { "criteria": { "requirement": { "trigger": "minecraft:item_durability_changed", "conditions": { "item": { "items": [ "minecraft:wooden_axe", "minecraft:stone_axe", "minecraft:iron_axe", "minecraft:golden_axe", "minecraft:diamond_axe", "minecraft:netherite_axe", "minecraft:wooden_pickaxe", "minecraft:stone_pickaxe", "minecraft:iron_pickaxe", "minecraft:golden_pickaxe", "minecraft:diamond_pickaxe", "minecraft:netherite_pickaxe", "minecraft:stone_shovel", "minecraft:iron_shovel", "minecraft:golden_shovel", "minecraft:diamond_shovel", "minecraft:netherite_shovel", "minecraft:wooden_sword", "minecraft:stone_sword", "minecraft:iron_sword", "minecraft:golden_sword", "minecraft:diamond_sword", "minecraft:netherite_sword" ], "components": { "enchantments": { "heresjohnny320:autorepair": 1 } } } } } }, "rewards": { "function": "heresjohnny320:hj320/exp/do_drop_xp_mending" } }
and try to check for that enchantment it works but then as soon as i apply like mending or any other enchantment it then brakes and stoppes working any idea why?