{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:looting_enchant",
              "count": {
                "min": 0.0,
                "max": 1.0
              }
            }
          ],
          "name": "minecraft:rotten_flesh"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_ingot"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:carrot"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potato"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:killed_by_player"
        },
        {
          "condition": "minecraft:random_chance_with_looting",
          "chance": 0.025,
          "looting_multiplier": 0.01
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:zombie_head",
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "target": "direct_killer",
              "tag": "{Tags:[\"dropped-head\"]}"
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:entity_properties",
          "predicate": {
            "type": "minecraft:creeper",
            "nbt": "{powered:1b}"
          },
          "entity": "direct_killer"
        },
        {
          "condition": "minecraft:inverted",
          "term": {
            "condition": "minecraft:entity_properties",
            "predicate": {
              "nbt": "{Tags:[\"dropped-head\"]}"
            },
            "entity": "direct_killer"
          }
        }
      ]
    }
  ]
}