{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 1.0,
        "max": 5.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:lead",
          "type": "minecraft:item",
          "weight": 20
        },
        {
          "name": "minecraft:golden_apple",
          "type": "minecraft:item",
          "weight": 15
        },
        {
          "name": "minecraft:enchanted_golden_apple",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:music_disc_13",
          "type": "minecraft:item",
          "weight": 15
        },
        {
          "name": "minecraft:music_disc_cat",
          "type": "minecraft:item",
          "weight": 15
        },
        {
          "name": "minecraft:name_tag",
          "type": "minecraft:item",
          "weight": 20
        },
        {
          "name": "minecraft:chainmail_chestplate",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "emendatusenigmatica:diamond_chunk_hoe",
          "type": "minecraft:item",
          "weight": 15
        },
        {
          "name": "emendatusenigmatica:diamond_chunk_chestplate",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 1.0,
        "max": 4.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "emendatusenigmatica:iron_chunk",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "emendatusenigmatica:gold_chunk",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bread",
          "type": "minecraft:item",
          "weight": 20
        },
        {
          "name": "minecraft:wheat",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bucket",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "emendatusenigmatica:cinnabar_gem",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:coal",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:melon_seeds",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:pumpkin_seeds",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:beetroot",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 3,
      "entries": [
        {
          "name": "minecraft:bone",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gunpowder",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:rotten_flesh",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:string",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "name": "minecraft:pink_banner",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:bo,Color:3},{Pattern:bo,Color:3},{Pattern:bo,Color:3}]}}"
            }
          ]
        },
        {
          "type": "minecraft:empty",
          "weight": 8
        },
        {
          "name": "minecraft:black_banner",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:bt,Color:5},{Pattern:sku,Color:0},{Pattern:sku,Color:12},{Pattern:sku,Color:15},{Pattern:bs,Color:15},{Pattern:rs,Color:15},{Pattern:ls,Color:15},{Pattern:bo,Color:1},{Pattern:tts,Color:1},{Pattern:tts,Color:15},{Pattern:bts,Color:1},{Pattern:bts,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:emerald",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    }
  ]
}
