{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 1,
      "entries": []
    },
    {
      "rolls": {
        "min": 3,
        "max": 4
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald_block",
          "quality": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "weight": 10
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "quality": 1,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 30,
                "max": 40
              },
              "options": "#minecraft:on_random_loot"
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 1,
        "max": 2
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_helmet"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_chestplate"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_leggings"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_boots"
        }
      ],
      "functions": [
        {
          "function": "minecraft:enchant_with_levels",
          "levels": {
            "min": 20,
            "max": 32
          },
          "options": "#minecraft:on_random_loot",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "function": "minecraft:set_damage",
          "damage": {
            "min": 0.4,
            "max": 0.88
          }
        },
        {
          "function": "minecraft:set_components",
          "components": {
            "minecraft:trim": {
              "material": "minecraft:iron",
              "pattern": "minecraft:vex",
              "show_in_tooltip": true
            }
          },
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.3333
            }
          ]
        },
        {
          "function": "minecraft:set_components",
          "components": {
            "minecraft:trim": {
              "material": "minecraft:gold",
              "pattern": "minecraft:vex",
              "show_in_tooltip": true
            }
          },
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.3333
            }
          ]
        },
        {
          "function": "minecraft:set_components",
          "components": {
            "minecraft:trim": {
              "material": "minecraft:emerald",
              "pattern": "minecraft:vex",
              "show_in_tooltip": true
            }
          },
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.3333
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 1,
        "max": 2
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_axe"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_sword"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_axe"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_sword"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:crossbow"
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:shield"
        }
      ],
      "functions": [
        {
          "function": "minecraft:enchant_with_levels",
          "levels": {
            "min": 20,
            "max": 32
          },
          "options": "#minecraft:on_random_loot",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "function": "minecraft:set_damage",
          "damage": {
            "min": 0.4,
            "max": 0.88
          }
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 9,
                "max": 18
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 2,
        "max": 3
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:splash_potion",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:long_regeneration"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:splash_potion",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_healing"
            }
          ]
        },
        {
          "type": "minecraft:alternatives",
          "children": [
            {
              "type": "minecraft:item",
              "name": "minecraft:enchanted_golden_apple",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.1
                }
              ]
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:golden_apple",
              "weight": 3
            }
          ]
        }
      ]
    }
  ]
}