{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "bastion_remnant",
              "decoration": "banner_black",
              "zoom": 2,
              "skip_existing_chunks": false
            }
          ]
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "fortresses",
              "decoration": "banner_red",
              "zoom": 2,
              "skip_existing_chunks": false
            }
          ]
        },
        {
          "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": "emendatusenigmatica:iron_chunk",
          "type": "minecraft:item",
          "weight": 70,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:coal",
          "type": "minecraft:item",
          "weight": 70,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bone",
          "type": "minecraft:item",
          "weight": 55,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "emendatusenigmatica:gold_chunk",
          "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": "emendatusenigmatica:diamond_chunk",
          "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": "minecraft:netherite_ingot",
          "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": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "name": "minecraft:pink_banner",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:bo,Color:3},{Pattern:bo,Color:3},{Pattern:bo,Color:3}]}}"
            }
          ]
        },
        {
          "type": "minecraft:empty",
          "weight": 88
        },
        {
          "name": "minecraft:suspicious_stew",
          "type": "minecraft:item",
          "weight": 76,
          "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
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "minecraft:red_banner",
          "type": "minecraft:item",
          "weight": 36,
          "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}]}}"
            }
          ]
        }
      ]
    }
  ]
}