{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": 3,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 1000
        },
        {
          "name": "minecraft:beetroot",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "mysticalagriculture:spider_essence",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:rabbit_hide",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:wheat",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:bread",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:melon_seeds",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "minecraft:pumpkin_seeds",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "mysticalagriculture:nature_essence",
          "type": "minecraft:item",
          "weight": 60
        },
        {
          "name": "mysticalagriculture:creeper_essence",
          "type": "minecraft:item",
          "weight": 30
        },
        {
          "name": "mysticalagriculture:redstone_essence",
          "type": "minecraft:item",
          "weight": 30
        },
        {
          "name": "mysticalagriculture:coal_essence",
          "type": "minecraft:item",
          "weight": 30
        },
        {
          "name": "mysticalagriculture:skeleton_essence",
          "type": "minecraft:item",
          "weight": 30
        },
        {
          "name": "minecraft:golden_apple",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:enchanted_golden_apple",
          "type": "minecraft:item",
          "weight": 1
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "repurposed_structures:chests/lucky_pool"
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 800
        },
        {
          "name": "minecraft:black_banner",
          "type": "minecraft:item",
          "weight": 30,
          "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": "mysticalagriculture:emerald_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    }
  ]
}