{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "irons_spellbooks:instant_mana_three"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "irons_spellbooks:instant_mana_two"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "count": {
                "min": 2,
                "max": 5
              },
              "function": "minecraft:set_count"
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:healing"
            }
          ],
          "name": "minecraft:tipped_arrow"
        }
      ]
    },
    {
      "rolls": 2,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:bone",
          "weight": 5
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_ingot",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 2,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 2
        },
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:scroll",
          "functions": [
            {
              "function": "irons_spellbooks:randomize_spell",
              "quality": {
                "min": 0.2,
                "max": 0.8
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:arcane_essence",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 16
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "irons_spellbooks:magic_items/good_ink",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "irons_spellbooks:magic_items/random_potion_or_elixir"
        },
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:blank_rune"
        }
      ]
    }
  ]
}
