Match part of custom_data component in a predicate
Heya, I have a predicate which should just test for whether
{be:1b}exists inside the held item'scustom_datacomponent. However, the predicate only runs if thecustom_dataof the item matches exactly what is specified in the predicate. How do I make it only check if the component includes the data, and not if it matches exactly?This is the predicate:
json { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "items": "minecraft:snowball", "components": { "minecraft:custom_data": {"be":1} } } } } }