{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "vanilla:entities/mooshroom"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:alternatives",
          "conditions": [
            {
              "condition": "killed_by_player"
            },
            {
              "condition": "random_chance_with_looting",
              "chance": 0.002,
              "looting_multiplier": 0.001
            }
          ],
          "children": [
            {
              "type": "item",
              "name": "minecraft:player_head",
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": "{SkullOwner:{Id:\"e206ac29-ae69-475b-909a-fb523d894336\",Name:\"Red Mooshroom\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDBiYzYxYjk3NTdhN2I4M2UwM2NkMjUwN2EyMTU3OTEzYzJjZjAxNmU3YzA5NmE0ZDZjZjFmZTFiOGRiIn19fQ==\"}]}}}"
                }
              ],
              "conditions": [
                {
                  "condition": "entity_properties",
                  "predicate": {
                    "nbt": "{Type:\"red\"}"
                  },
                  "entity": "this"
                }
              ]
            },
            {
              "type": "item",
              "name": "minecraft:player_head",
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": "{SkullOwner:{Id:\"35f9d5cc-3858-457b-99b1-53fae07f2968\",Name:\"Brown Mooshroom\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODUwMTcwOGUyYzAwYTYwNWE5ODhjNDE5YWY3MGMxNjE3Y2U1Njg4NjI4Yjc0MTNjZmQzNzAzOGVjMDIyMWFiYyJ9fX0=\"}]}}}"
                }
              ],
              "conditions": [
                {
                  "condition": "entity_properties",
                  "predicate": {
                    "nbt": "{Type:\"brown\"}"
                  },
                  "entity": "this"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
