{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 9,
      "bonus_rolls": {
        "min": 0,
        "max": 2
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanted_book",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{StoredEnchantments: [{lvl: 1s, id: \"minecraft:punch\"}]}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{StoredEnchantments: [{lvl: 1s, id: \"minecraft:sharpness\"}]}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{StoredEnchantments: [{lvl: 1s, id: \"minecraft:protection\"}]}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:leather_leggings",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 38}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 12}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:leather_helmet",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 35}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 10}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:leather_chestplate",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 35}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 62}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:leather_boots",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 45}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 12}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:torch",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 10
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:spruce_sapling",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:oak_sapling",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:cherry_sapling",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_nugget",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_mellohi",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_mall",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_far",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_chirp",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:apple",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:golden_apple",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:pumpkin_pie",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:cake",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:glow_berries",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:sheaf_pottery_sherd",
          "weight": 2
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:explorer_pottery_sherd",
          "weight": 2
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:slime_ball",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0,
                "max": 3
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:name_tag",
          "weight": 5
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:raw_iron",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:raw_copper",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:stick",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 8
              }
            }
          ]
        }
      ]
    }
  ]
}
