{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 2,
        "max": 6,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "mysticalagriculture:coal_essence",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 4,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:zombie_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 8,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:nether_quartz_essence",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 7,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:iron_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 7,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:redstone_essence",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 6,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:nether_wart",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 10,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:saddle",
          "type": "minecraft:item",
          "weight": 3
        },
        {
          "name": "minecraft:golden_horse_armor",
          "type": "minecraft:item"
        },
        {
          "name": "minecraft:golden_sword",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_boots",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_chestplate",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_leggings",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_helmet",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:iron_sword",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:chainmail_boots",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:chainmail_chestplate",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:chainmail_leggings",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:chainmail_helmet",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10,
                "max": 25,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "rolls": {
            "min": 1,
            "max": 3,
            "type": "minecraft:uniform"
          },
          "entries": [
            {
              "name": "minecraft:saddle",
              "type": "minecraft:item",
              "weight": 20
            },
            {
              "name": "minecraft:music_disc_13",
              "type": "minecraft:item",
              "weight": 15
            },
            {
              "name": "minecraft:music_disc_blocks",
              "type": "minecraft:item",
              "weight": 15
            },
            {
              "name": "minecraft:music_disc_chirp",
              "type": "minecraft:item",
              "weight": 15
            },
            {
              "name": "minecraft:music_disc_pigstep",
              "type": "minecraft:item",
              "weight": 4
            },
            {
              "name": "minecraft:name_tag",
              "type": "minecraft:item",
              "weight": 20
            },
            {
              "name": "minecraft:enchanted_golden_apple",
              "type": "minecraft:item",
              "weight": 2
            },
            {
              "name": "minecraft:book",
              "type": "minecraft:item",
              "weight": 10,
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ]
            }
          ]
        },
        {
          "rolls": {
            "min": 1,
            "max": 3,
            "type": "minecraft:uniform"
          },
          "entries": [
            {
              "name": "mysticalagriculture:coal_essence",
              "type": "minecraft:item",
              "weight": 15,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 1,
                    "max": 9,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "mysticalagriculture:zombie_essence",
              "type": "minecraft:item",
              "weight": 10,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 1,
                    "max": 5,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "mysticalagriculture:nether_quartz_essence",
              "type": "minecraft:item",
              "weight": 5,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 2,
                    "max": 9,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "minecraft:gold_nugget",
              "type": "minecraft:item",
              "weight": 15,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 4,
                    "max": 8,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "mysticalagriculture:gold_essence",
              "type": "minecraft:item",
              "weight": 15,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 3,
                    "max": 9,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "mysticalagriculture:redstone_essence",
              "type": "minecraft:item",
              "weight": 2,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 2,
                    "max": 9,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            },
            {
              "name": "minecraft:nether_wart",
              "type": "minecraft:item",
              "weight": 5,
              "functions": [
                {
                  "function": "minecraft:set_count",
                  "count": {
                    "min": 6,
                    "max": 10,
                    "type": "minecraft:uniform"
                  }
                }
              ]
            }
          ]
        },
        {
          "rolls": 1,
          "entries": [
            {
              "type": "minecraft:loot_table",
              "name": "repurposed_structures:chests/lucky_pool"
            }
          ]
        },
        {
          "rolls": 0,
          "bonus_rolls": 1,
          "entries": [
            {
              "type": "minecraft:empty",
              "weight": 130
            },
            {
              "name": "minecraft:black_banner",
              "type": "minecraft:item",
              "weight": 30,
              "functions": [
                {
                  "function": "set_nbt",
                  "tag": "{BlockEntityTag:{Patterns:[{Pattern:mr,Color:14},{Pattern:flo,Color:14},{Pattern:flo,Color:15},{Pattern:tts,Color:15},{Pattern:tts,Color:15},{Pattern:tts,Color:14},{Pattern:bts,Color:15},{Pattern:bts,Color:15},{Pattern:bts,Color:14},{Pattern:cbo,Color:14},{Pattern:bo,Color:14},{Pattern:cbo,Color:15}]}}"
                }
              ]
            },
            {
              "name": "minecraft:music_disc_11",
              "type": "minecraft:item",
              "weight": 10
            },
            {
              "name": "minecraft:name_tag",
              "type": "minecraft:item",
              "weight": 10
            }
          ]
        }
      ]
    }
  ]
}