{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/deep_cave"
                },
                "minecraft:item_name": "Deep Cave Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:deep_cave"
            },
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:overworld"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/cave"
                },
                "minecraft:item_name": "Cave Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:cave"
            },
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:overworld"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/surface"
                },
                "minecraft:item_name": "Surface Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:surface"
            },
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:overworld"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/mountain"
                },
                "minecraft:item_name": "Mountain Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:mountain"
            },
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:overworld"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/frozen"
                },
                "minecraft:item_name": "Frozen Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:cold_biome"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/desert"
                },
                "minecraft:item_name": "Dry Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:desert_biome"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/swamp"
                },
                "minecraft:item_name": "Muddy Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:swamp_biome"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/jungle"
                },
                "minecraft:item_name": "Jungle Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "biomes": "#minecraft:is_jungle"
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/ocean"
                },
                "minecraft:item_name": "Flooded Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "biomes": "#minecraft:is_ocean"
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:barrel",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:container_loot": {
                  "loot_table": "survivalplus:gameplay/crates/chamber"
                },
                "minecraft:item_name": "Chamber Crate"
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:reference",
              "name": "survivalplus:in_trial_chamber"
            }
          ]
        }
      ],
      "functions": [
        {
          "function": "minecraft:set_components",
          "components": {
            "minecraft:enchantment_glint_override": true,
            "minecraft:tooltip_display": {
              "hidden_components": [
                "minecraft:container_loot"
              ]
            },
            "minecraft:rarity": "uncommon"
          }
        }
      ]
    }
  ]
}