data pack validation error with custom enchant
Hello everyone. I haven't touched the databases in like 3 years and now that I saw the possibility of creating enchant I decided to give it a try. Unfortunately it gives me a validation error and I don't understand why. I even checked the logs but it seems too generic.
essence_extractor.json
{ "description": "Essence Extractor", "exclusive_set": [ "minecraft:looting", "minecraft:mending" ], "supported_items": "#minecraft:enchantable/sword", "weight": 1, "max_level": 2, "min_cost": { "base": 20, "per_level_above_first": 14 }, "max_cost": { "base": 70, "per_level_above_first": 14 }, "anvil_cost": 6, "slots": [ "hand" ], "effects": { "minecraft:mob_experience": [ { "effect": { "type": "minecraft:multiply", "factor": 1.5 }, "requirements": { "condition": "minecraft:entity_properties", "entity": "attacker", "predicate": { "type": "minecraft:player" } } } ] } }looting.json
{ "description": { "translate": "enchantment.minecraft.looting" }, "exclusive_set": "p_ench:essence_extractor", "supported_items": "#minecraft:enchantable/sword", "weight": 2, "max_level": 3, "min_cost": { "base": 15, "per_level_above_first": 9 }, "max_cost": { "base": 65, "per_level_above_first": 9 }, "anvil_cost": 4, "slots": [ "mainhand" ], "effects": { "minecraft:equipment_drops": [ { "enchanted": "attacker", "effect": { "type": "minecraft:add", "value": { "type": "minecraft:linear", "base": 0.01, "per_level_above_first": 0.01 } }, "requirements": { "condition": "minecraft:entity_properties", "entity": "attacker", "predicate": { "type": "minecraft:player" } } } ] } }mending.json
{ "description": { "translate": "enchantment.minecraft.mending" }, "exclusive_set": "p_ench:essence_extractor", "supported_items": "#minecraft:enchantable/durability", "weight": 2, "max_level": 1, "min_cost": { "base": 25, "per_level_above_first": 25 }, "max_cost": { "base": 75, "per_level_above_first": 25 }, "anvil_cost": 4, "slots": [ "any" ], "effects": { "minecraft:repair_with_xp": [ { "effect": { "type": "minecraft:multiply", "factor": 2 } } ] } }Latest log and folders are here: