{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "vanilla:entities/fox"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:alternatives",
          "conditions": [
            {
              "condition": "killed_by_player"
            },
            {
              "condition": "random_chance_with_looting",
              "chance": 0.018,
              "looting_multiplier": 0.004
            }
          ],
          "children": [
            {
              "type": "item",
              "name": "minecraft:player_head",
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": "{SkullOwner:{Id:\"237a2651-7da8-457a-aaea-3714bcc196a2\",Name:\"Fox\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDg5NTRhNDJlNjllMDg4MWFlNmQyNGQ0MjgxNDU5YzE0NGEwZDVhOTY4YWVkMzVkNmQzZDczYTNjNjVkMjZhIn19fQ==\"}]}}}"
                }
              ],
              "conditions": [
                {
                  "condition": "entity_properties",
                  "predicate": {
                    "nbt": "{Type:\"red\"}"
                  },
                  "entity": "this"
                }
              ]
            },
            {
              "type": "item",
              "name": "minecraft:player_head",
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": "{SkullOwner:{Id:\"b28c7bb1-b6a9-497b-8a2d-336876e85a9d\",Name:\"Snow Fox\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDE0MzYzNzdlYjRjNGI0ZTM5ZmIwZTFlZDg4OTlmYjYxZWUxODE0YTkxNjliOGQwODcyOWVmMDFkYzg1ZDFiYSJ9fX0=\"}]}}}"
                }
              ],
              "conditions": [
                {
                  "condition": "entity_properties",
                  "predicate": {
                    "nbt": "{Type:\"snow\"}"
                  },
                  "entity": "this"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
