{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:explorer_maps/bastion_remnant",
              "decoration": "banner_black",
              "zoom": 2,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "translate": "Bastion Remnant Map"
              }
            }
          ]
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:explorer_maps/nether_fortress",
              "decoration": "banner_red",
              "zoom": 2,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "translate": "Nether Fortress Map"
              }
            }
          ]
        },
        {
          "name": "minecraft:experience_bottle",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 4.0,
        "max": 8.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "mysticalagriculture:iron_essence",
          "type": "minecraft:item",
          "weight": 70,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:coal_essence",
          "type": "minecraft:item",
          "weight": 70,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:skeleton_essence",
          "type": "minecraft:item",
          "weight": 55,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 45,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:stone_sword",
          "type": "minecraft:item",
          "weight": 35,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 30.0,
                "max": 45.0,
                "type": "minecraft:uniform"
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:magma_cream",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 7.0,
                "max": 15.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:ancient_debris",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:crying_obsidian",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:spectral_arrow",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8.0,
                "max": 15.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:netherite_scrap",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gold_block",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:iron_block",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:netherite_essence",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:elytra",
          "type": "minecraft:item",
          "weight": 1
        }
      ]
    },
    {
      "rolls": 1,
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 5
        },
        {
          "name": "minecraft:coast_armor_trim_smithing_template",
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": 2.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:red_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:mr,Color:14},{Pattern:mr,Color:4},{Pattern:cbo,Color:14},{Pattern:cbo,Color:4},{Pattern:flo,Color:15},{Pattern:flo,Color:15},{Pattern:flo,Color:14},{Pattern:sku,Color:15},{Pattern:sku,Color:15},{Pattern:bo,Color:1},{Pattern:bo,Color:4},{Pattern:bo,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:suspicious_stew",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_stew_effect",
              "effects": [
                {
                  "type": "minecraft:blindness",
                  "duration": {
                    "min": 10.0,
                    "max": 25.0
                  }
                },
                {
                  "type": "minecraft:wither",
                  "duration": {
                    "min": 10.0,
                    "max": 20.0
                  }
                },
                {
                  "type": "minecraft:weakness",
                  "duration": {
                    "min": 30.0,
                    "max": 50.0
                  }
                },
                {
                  "type": "minecraft:poison",
                  "duration": {
                    "min": 15.0,
                    "max": 30.0
                  }
                },
                {
                  "type": "minecraft:unluck",
                  "duration": {
                    "min": 200.0,
                    "max": 400.0
                  }
                },
                {
                  "type": "minecraft:fire_resistance",
                  "duration": {
                    "min": 360.0,
                    "max": 600.0
                  }
                },
                {
                  "type": "minecraft:night_vision",
                  "duration": {
                    "min": 60.0,
                    "max": 120.0
                  }
                },
                {
                  "type": "minecraft:saturation",
                  "duration": {
                    "min": 10.0,
                    "max": 12.0
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}