{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 5.0,
        "max": 15.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:gold_block",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:netherite_scrap",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_sword",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 10.0,
                "max": 30.0,
                "type": "minecraft:uniform"
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:stone_sword",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 30.0,
                "max": 39.0,
                "type": "minecraft:uniform"
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 9.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:nether_wart",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:redstone_essence",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 1.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:quartz_block",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:nether_quartz_essence",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:zombie_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 12.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gold_nugget",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:golden_horse_armor",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30,
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:blackstone",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "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:bt,Color:1},{Pattern:bts,Color:14},{Pattern:tt,Color:1},{Pattern:tts,Color:14},{Pattern:mr,Color:15},{Pattern:bri,Color:15},{Pattern:bri,Color:15},{Pattern:bo,Color:14},{Pattern:bo,Color:1},{Pattern:bo,Color:15},{Pattern:moj,Color:14},{Pattern:moj,Color:4}]}}"
            }
          ]
        },
        {
          "name": "minecraft:comparator",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        },
        {
          "name": "minecraft:target",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    }
  ]
}