{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:blood_rune"
        }
      ]
    },
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 8.0,
                "min": 0.0
              },
              "function": "minecraft:set_count"
            },
            {
              "count": {
                "type": "minecraft:uniform",
                "max": 1.0,
                "min": 0.0
              },
              "function": "minecraft:enchanted_count_increase",
              "enchantment": "minecraft:looting"
            }
          ],
          "name": "irons_spellbooks:arcane_essence"
        }
      ],
      "rolls": 1.0
    },
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:scroll",
          "functions": [
            {
              "function": "irons_spellbooks:randomize_spell",
              "quality": {
                "min": 0.25,
                "max": 0.85
              },
              "spell_filter": {
                "school": "irons_spellbooks:blood"
              }
            }
          ]
        }
      ],
      "rolls": 1
    },
    {
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "irons_spellbooks:magic_items/good_ink"
        }
      ]
    }
  ]
}