Hit Detection Issue.
I've been trying to make hit detection by checking custom model data and it doesnt seem to work anyone know whats up with it? here's the advancement:
Continue to help post{ "criteria": { "requirement": { "trigger": "minecraft:player_hurt_entity", "conditions": { "player": [ { "condition": "minecraft:match_tool", "predicate": { "items": [ "minecraft:golden_sword" ], "nbt.CustomModelData": 900003 } } ] } } }, "rewards": { "function": "ingotcraftweapons:item/kaminari/on_hit" } }