{ "criteria": { "trading_counter": { "trigger": "minecraft:villager_trade", "conditions": { "player": [ { "condition": "minecraft:inverted", "term": { "condition": "minecraft:entity_scores", "entity": "this", "scores": { "carpetBot": 1 } } } ] } } }, "rewards": { "function": "fz:scoreboards/tradingcounter/calculator" } }