{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:dragon_egg"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "mmorpg:custom_crate",
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{rarity_gear_crate:{set_to_player_lvl:1b,rar:\"unique\",tier:10}}"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "mmorpg:custom_crate",
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{rarity_gear_crate:{set_to_player_lvl:1b,rar:\"legendary\",tier:10}}"
            }
          ]
        }
      ]
    }
  ]
}
