{
    "type": "minecraft:chest",
    "pools": [
        {
            "conditions": [
                {
                    "chance": 0.085,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_boots",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_boots",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_leggings",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_leggings",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_chestplate",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_chestplate",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_helmet",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_helmet",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.4,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 15,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.95,
                                "min": 0.5
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:diamond_helmet",
                    "weight": 10
                }
            ],
            "rolls": 3
        },
        {
            "conditions": [
                {
                    "chance": 0.75,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_pickaxe",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_pickaxe",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.2
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.7,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 5
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:golden_shovel",
                    "weight": 2
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_shovel",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.6,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 25,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.3
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:iron_sword",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.3,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 12,
                                "min": 4
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 0.9,
                                "min": 0.55
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "minecraft:diamond_pickaxe",
                    "weight": 2
                }
            ],
            "rolls": 1
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.3,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 20,
                                "min": 8
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:clay_ball",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.3,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 13,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:clay",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.365,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 9,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:moss_block",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.175,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 12,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:short_grass",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.3,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 7,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:moss_carpet",
                    "weight": 12
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.4,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 15,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:glow_berries",
                    "weight": 15
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.2,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 6,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:vine",
                    "weight": 6
                }
            ],
            "rolls": 4
        },
        {
            "conditions": [
                {
                    "chance": 0.225,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 3,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:amethyst_cluster",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 10,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:small_amethyst_bud",
                    "weight": 20
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 6,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:medium_amethyst_bud",
                    "weight": 15
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 5,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:large_amethyst_bud",
                    "weight": 12
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 10,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:amethyst_shard",
                    "weight": 26
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 5,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:amethyst_block",
                    "weight": 3
                }
            ],
            "rolls": 1
        },
        {
            "conditions": [
                {
                    "chance": 0.4,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "type": "minecraft:uniform",
                                "max": {
                                    "max": 30,
                                    "min": 10
                                },
                                "min": 7
                            },
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:book"
                }
            ],
            "rolls": 1
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.95,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 7,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:paper",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.95,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 5,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:book",
                    "weight": 8
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.6,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:bookshelf",
                    "weight": 3
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.4,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 10,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:iron_ingot",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 12,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_iron",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.4,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_iron_block",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.4,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 10,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:gold_ingot",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 12,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_gold",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.4,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_gold_block",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.4,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 24,
                                "min": 10
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:copper_ingot",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 16,
                                "min": 5
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_copper",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 4,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:raw_copper_block",
                    "weight": 2
                }
            ],
            "rolls": 3
        },
        {
            "conditions": [
                {
                    "chance": 0.25,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 3,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:diamond",
                    "weight": 10
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "condition": "minecraft:location_check",
                            "predicate": {
                                "position": {
                                    "y": {
                                        "max": 319,
                                        "min": 0
                                    }
                                }
                            }
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:diamond_ore",
                    "weight": 3
                }
            ],
            "rolls": 1
        }
    ]
}