{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 2.0,
        "max": 10.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 45,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:paper",
          "type": "minecraft:item",
          "weight": 45,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30,
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "minecraft:compass",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "minecraft:lodestone",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "minecraft:respawn_anchor",
          "type": "minecraft:item",
          "weight": 6
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 25
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:explorer_maps/ruins_nether",
              "decoration": "banner_black",
              "zoom": 2,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "translate": "Nether Ruins Map"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 25
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 3,
          "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"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 26
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:explorer_maps/city_nether",
              "decoration": "banner_gray",
              "zoom": 2,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "translate": "Nether City Map"
              }
            }
          ]
        }
      ]
    },
    {
      "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:bl,Color:15},{Pattern:tr,Color:15},{Pattern:bri,Color:15},{Pattern:bri,Color:14},{Pattern:gru,Color:14},{Pattern:bo,Color:15},{Pattern:tts,Color:15},{Pattern:bts,Color:15},{Pattern:cs,Color:15},{Pattern:mr,Color:15},{Pattern:mc,Color:14},{Pattern:mc,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:ender_eye",
          "type": "minecraft:item",
          "weight": 10
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 30,
              "treasure": true
            }
          ]
        }
      ]
    }
  ]
}