{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:arcane_essence",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0,
                "max": 4
              }
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:random_chance",
          "chance": 0.35
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:scroll",
          "functions": [
            {
              "function": "irons_spellbooks:randomize_spell",
              "quality": {
                "min": 0.3,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "irons_spellbooks:blank_rune"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:random_chance",
          "chance": 0.02
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "irons_spellbooks:magic_items/poor_ink"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:random_chance",
          "chance": 0.25
        }
      ]
    },
    {
      "rolls": 4,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:emerald"
        },
        {
          "type": "minecraft:item",
          "weight": 2,
          "name": "minecraft:book"
        },
        {
          "type": "minecraft:item",
          "weight": 2,
          "name": "minecraft:apple"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:rotten_flesh"
        },
        {
          "type": "minecraft:item",
          "weight": 8,
          "name": "minecraft:cobweb"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:charcoal"
        },
        {
          "type": "minecraft:empty",
          "weight": 6
        }
      ]
    }
  ]
}
