{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:all_of",
      "terms": [
        {
          "condition": "minecraft:killed_by_player"
        },
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "&killed_by_player"
            },
            "score": "mob_heads.config"
          },
          "range": 1
        }
      ]
    },
    {
      "condition": "minecraft:all_of",
      "terms": [
        {
          "condition": "minecraft:damage_source_properties",
          "predicate": {
            "source_entity": {
              "type": "minecraft:creeper",
              "nbt": "{powered:1b}"
            }
          }
        },
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "&killed_by_player"
            },
            "score": "mob_heads.config"
          },
          "range": 0
        }
      ]
    }
  ]
}
