{
  "criteria": {
    "tick": {
      "trigger": "minecraft:tick",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:value_check",
            "value": {
              "type": "minecraft:score",
              "target": {
                "type": "minecraft:fixed",
                "name": "&mob_heads_advancements"
              },
              "score": "jodek.config"
            },
            "range": 0
          },
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type_specific": {
                "type": "minecraft:player",
                "advancements": {
                  "jodek:mob_heads": true,
                  "jodek:root": true,
                  "jodek:mobs": true
                }
              }
            }
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "mob_heads:remove_advancements"
  }
}