{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 10,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 20,
          "name": "minecraft:glass_bottle"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:potion",
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:water"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:emerald"
        }
      ]
    },
    {
      "rolls": {
        "min": 0,
        "max": 2
      },
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "irons_spellbooks:magic_items/random_potion_or_elixir"
        }
      ]
    }
  ]
}
