{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:uniform",
        "max": 10.0,
        "min": 5.0
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "name": "minecraft:ender_chest",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_strength"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:long_weakness"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_swiftness"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_slowness"
            }
          ]
        },
        {
          "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"
            }
          ]
        },
        {
          "name": "minecraft:music_disc_otherside",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_healing"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_harming"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_regeneration"
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5.0,
                "max": 14.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:strong_poison"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:long_slow_falling"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:long_invisibility"
            }
          ]
        },
        {
          "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:end_crystal",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 4.0,
                "min": 2.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "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",
              "options": "#minecraft:on_random_loot",
              "levels": {
                "type": "minecraft:uniform",
                "max": 50.0,
                "min": 30.0
              }
            }
          ]
        },
        {
          "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_mellohi",
          "type": "minecraft:item",
          "weight": 4
        },
        {
          "name": "minecraft:music_disc_stal",
          "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
              },
              "options": "#minecraft:on_random_loot"
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:enchant_randomly",
              "options": [
                "minecraft:feather_falling",
                "minecraft:blast_protection",
                "minecraft:fire_protection",
                "minecraft:projectile_protection",
                "minecraft:protection",
                "minecraft:thorns",
                "minecraft:mending",
                "minecraft:unbreaking",
                "minecraft:vanishing_curse"
              ]
            }
          ]
        },
        {
          "name": "minecraft:black_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:yellow_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:diamond",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 8.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:netherite_ingot",
          "type": "minecraft:item",
          "weight": 6
        },
        {
          "name": "minecraft:experience_bottle",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 6.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:ender_eye",
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 9.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": 60.0,
                "min": 40.0
              },
              "options": "#minecraft:on_random_loot"
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:enchant_randomly",
              "options": [
                "minecraft:silk_touch",
                "minecraft:fortune",
                "minecraft:frost_walker",
                "minecraft:looting",
                "minecraft:vanishing_curse"
              ]
            }
          ]
        },
        {
          "name": "minecraft:pearlescent_froglight",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 2.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:bookshelf",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 10.0,
                "min": 3.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:bone_block",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 15.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ]
        },
        {
          "name": "minecraft:end_rod",
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 6.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": 16,
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 2.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            },
            {
              "function": "minecraft:enchant_randomly",
              "options": "#minecraft:on_random_loot"
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 75
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:ward_armor_trim_smithing_template",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:silence_armor_trim_smithing_template"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "repurposed_structures:chests/lucky_pool"
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 130
        },
        {
          "name": "minecraft:magenta_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:set_banner_pattern",
              "append": true,
              "patterns": [
                {
                  "pattern": "minecraft:bricks",
                  "color": "black"
                },
                {
                  "pattern": "minecraft:small_stripes",
                  "color": "magenta"
                },
                {
                  "pattern": "minecraft:gradient_up",
                  "color": "black"
                },
                {
                  "pattern": "minecraft:gradient_up",
                  "color": "magenta"
                },
                {
                  "pattern": "minecraft:rhombus",
                  "color": "black"
                },
                {
                  "pattern": "minecraft:square_bottom_right",
                  "color": "magenta"
                },
                {
                  "pattern": "minecraft:square_bottom_right",
                  "color": "black"
                },
                {
                  "pattern": "minecraft:square_bottom_left",
                  "color": "magenta"
                },
                {
                  "pattern": "minecraft:square_bottom_left",
                  "color": "black"
                },
                {
                  "pattern": "minecraft:triangles_bottom",
                  "color": "magenta"
                },
                {
                  "pattern": "minecraft:gradient_up",
                  "color": "purple"
                },
                {
                  "pattern": "minecraft:triangles_bottom",
                  "color": "black"
                }
              ]
            }
          ]
        },
        {
          "name": "minecraft:dragon_breath",
          "type": "minecraft:item",
          "weight": 3
        }
      ]
    }
  ]
}