predicate check for custom_data 1.20.5

im trying to check if the player holds an item which contains the custom_data {artifact:true} but if i use "components": { "custom_data": {artifact:1} } it will literally check for that tag so no other tags are allowed the wiki says they renamed "nbt" to "custom_data" but that allows any item { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "items": "minecraft:warped_fungus_on_a_stick", "custom_data": "{artifact:1}" } } } }
Continue to help post