{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 2.0,
        "max": 4.0
      },
      "entries": [
        {
          "name": "mysticalagriculture:nature_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 8.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:bread",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 7.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:apple",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:porkchop",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:wheat",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:beef",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:mutton",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:cod",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:egg",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:salmon",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 1.0,
        "max": 4.0
      },
      "entries": [
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 2.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 7.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:compass",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:water_bucket",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 3.0
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_helmet",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_chestplate",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_leggings",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_boots",
          "weight": 1
        },
        {
          "name": "minecraft:iron_pickaxe",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:iron_sword",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:iron_shovel",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:shears",
          "weight": 1
        },
        {
          "name": "minecraft:leather_chestplate",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_boots",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_helmet",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_leggings",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:saddle",
          "weight": 1
        },
        {
          "name": "minecraft:iron_horse_armor",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_horse_armor",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:diamond_horse_armor",
          "type": "minecraft:item",
          "weight": 1
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 3.0,
        "max": 5.0
      },
      "entries": [
        {
          "name": "minecraft:paper",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 7.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:emerald_essence",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:oak_sapling",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 4.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:coal_essence",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4.0,
                "max": 15.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:flint",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 7.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:iron_essence",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "mysticalagriculture:chicken_essence",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:dandelion",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 4.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:redstone_essence",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:obsidian_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4.0,
                "max": 8.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:zombie_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 4.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:diamond_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 4.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:lapis_lazuli_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:stone_bricks",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:stone",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:yellow_dye",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:smooth_stone",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:clay_ball",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "mysticalagriculture:cow_essence",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:flower_pot",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:white_wool",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 3.0,
                "max": 10.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:black_wool",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:gray_wool",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:brown_wool",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:light_gray_wool",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 5.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:poppy",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 4.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:gold_nugget",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:stick",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:barrel",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1.0,
                "max": 3.0
              },
              "add": false
            }
          ]
        },
        {
          "name": "minecraft:wheat_seeds",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2.0,
                "max": 6.0
              },
              "add": false
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 14
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:spire_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:brown_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:gru,Color:14},{Pattern:gru,Color:15},{Pattern:gra,Color:12},{Pattern:hhb,Color:7},{Pattern:ss,Color:15},{Pattern:pig,Color:8},{Pattern:tts,Color:15},{Pattern:bo,Color:15},{Pattern:ms,Color:8},{Pattern:ms,Color:7},{Pattern:ms,Color:15},{Pattern:tts,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:firework_star",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{Explosion:{Type:2b,Flicker:1b,Trail:1b,Colors:[I;11743532,6719955],FadeColors:[I;8073150,12801229]}}"
            }
          ]
        }
      ]
    }
  ]
}