Enchantments not working anymore
IDK how, but i somehow again made something that worked and now it doesn't anymore. I made enchantments that are supposed to repair the item on certain conditions, but nothing happens (yes i made them with misode). I also double and triple checked all the folder naming and since another enchantment from another namespace in the same datapack works idk what the problem is anymore.
- Enchantment:
"description": "Mana Steal", "supported_items": "minecraft:stone_pickaxe", "weight": 1, "max_level": 5, "min_cost": { "base": 0, "per_level_above_first": 0 }, "max_cost": { "base": 0, "per_level_above_first": 0 }, "anvil_cost": 0, "slots": [ "mainhand" ], "effects": { "minecraft:post_attack": [ { "effect": { "type": "minecraft:change_item_damage", "amount": { "type": "minecraft:linear", "base": -20, "per_level_above_first": -15 } }, "enchanted": "attacker", "affected": "attacker" } ] } }``` I can send the 2. enchantment if needed (they are in the same folder). after some testing i can say the problem is somewhere in the effect. I added another effect that spawns a lightning at the victim and that works