{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": {
        "min": 3.0,
        "max": 6.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:diamond_essence",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:iron_essence",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:nether_wart",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:chain",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 6.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:enderman_essence",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:ender_eye",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:saddle",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:iron_horse_armor",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:golden_horse_armor",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:diamond_horse_armor",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:obsidian",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 6.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_sword",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_chestplate",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_boots",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_helmet",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_leggings",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_sword",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:golden_chestplate",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:golden_boots",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:golden_helmet",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:golden_leggings",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:flint_and_steel",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:lodestone",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:music_disc_pigstep",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:music_disc_otherside"
        },
        {
          "name": "minecraft:netherite_scrap",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30,
              "treasure": true
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 9
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:eye_armor_trim_smithing_template"
        }
      ]
    },
    {
      "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:red_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:bl,Color:15},{Pattern:tr,Color:15},{Pattern:bri,Color:15},{Pattern:bri,Color:14},{Pattern:gru,Color:14},{Pattern:bo,Color:15},{Pattern:tts,Color:15},{Pattern:bts,Color:15},{Pattern:cs,Color:15},{Pattern:mr,Color:15},{Pattern:mc,Color:14},{Pattern:mc,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:ender_eye",
          "type": "minecraft:item",
          "weight": 15
        }
      ]
    }
  ]
}