predicate help
I'm trying to create a data pack to add custom armor trim abilities and decided to use predicates to detect weather the player is wearing a trimmed piece. I have a scoreboard that tells me how many pieces of armor that the player is wearing with the trim starting at -1 (this is so I can assign effects using the stored value). My scoreboard isn't updating. This is my predicate:
"condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "feet": { "components": { "minecraft:trim": { "pattern": "minecraft:wayfinder" } } } } } }``` This is my detector function: ``` scoreboard players set wayfinder trims -1 execute if predicate trimpower:wayfinder/wayfinder_helm run scoreboard players add wayfinder trims 1 execute if predicate trimpower:wayfinder/wayfinder_chest run scoreboard players add wayfinder trims 1 execute if predicate trimpower:wayfinder/wayfinder_legs run scoreboard players add wayfinder trims 1 execute if predicate trimpower:wayfinder/wayfinder_boots run scoreboard players add wayfinder trims 1 execute store result storage trimpower:effects wayfinder int 1 run scoreboard players get wayfinder trims``` This is my tick function: ``` function trimpower:wayfinder/wayfinder_check function trimpower:wayfinder/wayfinder_effect with storage trimpower:effects``` Can someone tell me what I'm doing wrong?