{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "minecraft:chests/buried_treasure",
          "weight": 1
        },
        {
          "type": "minecraft:loot_table",
          "name": "minecraft:chests/underwater_ruin_big",
          "weight": 9
        },
        {
          "type": "minecraft:loot_table",
          "name": "minecraft:chests/underwater_ruin_small",
          "weight": 22
        },
        {
          "type": "minecraft:loot_table",
          "name": "minecraft:chests/simple_dungeon",
          "weight": 45
        },
        {
          "type": "minecraft:loot_table",
          "name": "minecraft:chests/shipwreck_supply",
          "weight": 55
        }
      ]
    },
    {
      "rolls": {
        "min": 1.0,
        "max": 3.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:music_disc_wait",
          "type": "minecraft:item",
          "weight": 3
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:music_disc_mall",
          "type": "minecraft:item",
          "weight": 3
        },
        {
          "name": "minecraft:music_disc_otherside",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:nautilus_shell",
          "type": "minecraft:item",
          "weight": 16,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 6.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:name_tag",
          "type": "minecraft:item",
          "weight": 9
        },
        {
          "name": "minecraft:prismarine_crystals",
          "type": "minecraft:item",
          "weight": 16,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:prismarine_essence",
          "type": "minecraft:item",
          "weight": 16,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 6.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:mr,Color:11},{Pattern:flo,Color:11},{Pattern:flo,Color:15},{Pattern:tts,Color:15},{Pattern:tts,Color:15},{Pattern:tts,Color:11},{Pattern:bts,Color:15},{Pattern:bts,Color:15},{Pattern:bts,Color:11},{Pattern:cbo,Color:7},{Pattern:bo,Color:11},{Pattern:cbo,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:music_disc_11",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "minecraft:name_tag",
          "type": "minecraft:item",
          "weight": 10
        }
      ]
    }
  ]
}
