{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:player_head",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:profile": {
                  "properties": [
                    {
                      "name": "textures",
                      "value": "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDIyMDI2NjRjZjI5ZWNlMDJhYTVkNDcxZTVkM2JlYzNlN2U3YjNmMWZlNjI2Y2IwMjczNGE3MGJjOWRjZjRjOSJ9fX0="
                    }
                  ]
                }
              }
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "white",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 0
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "yellow",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 1
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "aqua",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 2
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "dark_purple",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 3
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "gold",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 4
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "color": "green",
                "translate": "entity.minecraft.fox",
                "italic": false,
                "extra": [
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.baby",
                    "fallback": "Baby"
                  },
                  {
                    "text": " "
                  },
                  {
                    "translate": "mob_heads.head",
                    "fallback": "Head"
                  }
                ]
              },
              "conditions": [
                {
                  "condition": "minecraft:value_check",
                  "value": {
                    "type": "minecraft:score",
                    "target": {
                      "type": "minecraft:fixed",
                      "name": "&fox"
                    },
                    "score": "mob_heads.rarity"
                  },
                  "range": 5
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:note_block_sound": "minecraft:entity.fox.sleep"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": {
                "type": "minecraft:storage",
                "storage": "mob_heads:root",
                "path": "data.fox"
              }
            }
          ]
        }
      ]
    }
  ]
}
