{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 2,
        "max": 4
      },
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 15,
          "name": "minecraft:diamond",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 12,
          "name": "minecraft:emerald",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "min": 3,
                "max": 6
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:gold_ingot",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 8
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 8,
          "name": "minecraft:lapis_lazuli",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 8
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "name": "minecraft:golden_apple",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 1,
        "max": 2
      },
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 12,
          "name": "minecraft:diamond_sword",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 15,
                "max": 30
              },
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.0,
                "max": 0.1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:bow",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 15,
                "max": 30
              },
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.0,
                "max": 0.1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 8,
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 20,
                "max": 30
              },
              "treasure": true
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "name": "minecraft:crossbow",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "type": "minecraft:uniform",
                "min": 10,
                "max": 25
              },
              "options": "#minecraft:on_random_loot"
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.0,
                "max": 0.2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "name": "minecraft:trident",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "type": "minecraft:uniform",
                "min": 10,
                "max": 25
              },
              "options": "#minecraft:on_random_loot"
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.0,
                "max": 0.3
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 0,
        "max": 1
      },
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 8,
          "name": "minecraft:totem_of_undying"
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "name": "minecraft:jungle_log",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 8
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "name": "minecraft:enchanted_golden_apple"
        }
      ]
    }
  ]
}
