{ "criteria": { "leave_game": { "trigger": "minecraft:tick", "conditions": { "player": [ { "condition": "minecraft:inverted", "term": { "condition": "minecraft:entity_scores", "entity": "this", "scores": { "leaveGame": { "max": 0 } } } } ] } } }, "rewards": { "function": "fz:login/onlogin" } }