{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 10,
        "max": 17
      },
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:book"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:set_lore",
              "entity": "this",
              "lore": [
                {
                  "text": "An ancient book of draconic knowledge.",
                  "color": "gray",
                  "italic": true
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": "Enchanted Book of Dragon Magic"
            },
            {
              "function": "minecraft:enchant_randomly",
              "enchantments": [
                "minecraft:flame",
                "minecraft:feather_falling",
                "minecraft:fire_aspect",
                "minecraft:fire_protection",
                "minecraft:impaling",
                "minecraft:knockback",
                "minecraft:piercing",
                "minecraft:power",
                "minecraft:projectile_protection",
                "minecraft:quick_charge",
                "minecraft:unbreaking"
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 8,
          "name": "minecraft:end_rod"
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:dragon_breath"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:end_crystal"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:experience_bottle"
        },
        {
          "type": "minecraft:item",
          "weight": 7,
          "name": "minecraft:flint",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{display:{Name:'{\"text\":\"Dragon Scale\",\"color\":\"aqua\",\"italic\":false}'},nitref_dragonScale:1b}"
            }
          ]
        }
      ]
    }
  ]
}
