{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:uniform",
        "max": 13.0,
        "min": 8.0
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "name": "minecraft:heart_of_the_sea",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:enchanted_golden_apple",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 2.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Potion:\"minecraft:regeneration\"}"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Potion:\"minecraft:water_breathing\"}"
            }
          ]
        },
        {
          "name": "minecraft:disc_fragment_5",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:compass",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:nautilus_shell",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 4.0,
                "min": 2.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:name_tag",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:diamond_hoe",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            },
            {
              "add": false,
              "damage": {
                "type": "minecraft:uniform",
                "max": 1.0,
                "min": 0.8
              },
              "function": "minecraft:set_damage"
            },
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "type": "minecraft:uniform",
                "max": 50.0,
                "min": 30.0
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:lead",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:diamond_horse_armor",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:saddle",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:music_disc_wait",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:music_disc_mall",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:diamond_leggings",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "type": "minecraft:uniform",
                "max": 50.0,
                "min": 30.0
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "enchantments": [
                "minecraft:channeling",
                "minecraft:impaling",
                "minecraft:riptide",
                "minecraft:unbreaking",
                "minecraft:vanishing_curse"
              ],
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:cyan_candle",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 4.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:light_blue_candle",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 4.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:prismarine_shard",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:experience_bottle",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:prismarine_crystals",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:iron_leggings",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "type": "minecraft:uniform",
                "max": 39.0,
                "min": 20.0
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "enchantments": [
                "minecraft:aqua_affinity",
                "minecraft:depth_strider",
                "minecraft:respiration"
              ],
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "mysticalagriculture:lapis_lazuli_essence",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:potion",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_regeneration"
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 10.0,
                "min": 3.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "mysticalagriculture:skeleton_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:sea_lantern",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "mysticalagriculture:coal_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 6.0
              },
              "function": "minecraft:set_count"
            }
          ]
        }
      ]
    },
    {
      "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:light_blue_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:bri,Color:15},{Pattern:ss,Color:9},{Pattern:gru,Color:15},{Pattern:gru,Color:11},{Pattern:mr,Color:15},{Pattern:br,Color:9},{Pattern:br,Color:15},{Pattern:bl,Color:9},{Pattern:bl,Color:15},{Pattern:bts,Color:9},{Pattern:gra,Color:9},{Pattern:bts,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:trident",
          "type": "minecraft:item",
          "weight": 3
        }
      ]
    }
  ]
}