Predicate for custom_data component if contains a specific data

Hello everyone, I need help I have an item that has custom_data component, but one of its custom_data is dynamic, I have these predicates, but they do not work when the item does not contain only custom_data, but I have no way to make a dynamic predicate, how do I do to detect in a predicate for those two cases if an item contains a specific custom_data but still pass the test if it has other custom_data? my item has the custom_data of custom:true, but none of these predicates detects it, how can I correct them? json { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "components": { "minecraft:custom_data": { "custom": true } } } } } } json { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "type": "minecraft:item", "nbt": "{Item:{components:{\"minecraft:custom_data\":{\"custom\":true}}}}" } }
Continue to help post