{
  "parent": "magical_addons:---/main/root",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:tick",
      "conditions": {
        "player": [
          {
            "condition": "any_of",
            "terms": [
              {
                "condition": "minecraft:entity_scores",
                "entity": "this",
                "scores": {
                  "maddons.play_time": 1
                }
              },
              {
                "condition": "minecraft:entity_scores",
                "entity": "this",
                "scores": {
                  "maddons.leave_game": 1
                }
              }
            ]
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "magical_addons:main/join"
  }
}