Right click detection

I'm trying to make an ability with an item and its not working, whats wrong with this code? { "criteria": { "use_item": { "trigger": "minecraft:consume_item", "conditions": { "item": { "predicates": { "minecraft:custom_data": {"vital_shard":true} }}} }}, "rewards": { "function": "spells:weapons/use_vital_shard" } }

Continue to help post