{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 2.0,
        "max": 5.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "emendatusenigmatica:diamond_chunk",
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "emendatusenigmatica:iron_chunk",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "emendatusenigmatica:gold_chunk",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:emerald",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bone",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 6.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:vine",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:rotten_flesh",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:saddle",
          "type": "minecraft:item",
          "weight": 20
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 15,
          "name": "minecraft:iron_horse_armor"
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:golden_horse_armor"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:diamond_horse_armor"
        },
        {
          "name": "minecraft:golden_apple",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "minecraft:golden_carrot",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "minecraft:enchanted_golden_apple",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "type": "minecraft:empty",
          "weight": 10
        }
      ]
    },
    {
      "rolls": 4,
      "entries": [
        {
          "name": "minecraft:bone",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gunpowder",
          "type": "minecraft:item",
          "weight": 15,
          "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"
              }
            }
          ]
        },
        {
          "name": "minecraft:cracked_stone_bricks",
          "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": 24
        },
        {
          "name": "minecraft:red_banner",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:ss,Color:14},{Pattern:flo,Color:15},{Pattern:flo,Color:15},{Pattern:flo,Color:14},{Pattern:gru,Color:14},{Pattern:bt,Color:15},{Pattern:bt,Color:15},{Pattern:bt,Color:8},{Pattern:tts,Color:15},{Pattern:bts,Color:15},{Pattern:bts,Color:8},{Pattern:gra,Color:13}]}}"
            }
          ]
        },
        {
          "name": "minecraft:diamond_horse_armor",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Potion:\"minecraft:regeneration\"}"
            }
          ]
        }
      ]
    }
  ]
}