{
    "type": "minecraft:chest",
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:item",
                    "name": "minecraft:iron_pickaxe"
                }
            ],
            "functions": [
                {
                    "function": "minecraft:enchant_with_levels",
                    "levels": {
                        "type": "minecraft:uniform",
                        "min": 0,
                        "max": 10
                    },
                    "options": "#minecraft:on_random_loot",
                    "conditions": [
                        {
                            "condition": "minecraft:random_chance",
                            "chance": 0.2
                        }
                    ]
                }
            ]
        },
        {
            "rolls": {
                "type": "minecraft:uniform",
                "min": 3,
                "max": 5
            },
            "entries": [
                {
                    "type": "minecraft:item",
                    "name": "minecraft:copper_ore",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:gold_ore",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:iron_ore",
                    "weight": 1,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 1,
                                "max": 3
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:cobblestone",
                    "weight": 3,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 3,
                                "max": 5
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:stone",
                    "weight": 3,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 3,
                                "max": 5
                            }
                        }
                    ]
                }
            ]
        },
        {
            "rolls": {
                "type": "minecraft:uniform",
                "min": 2,
                "max": 4
            },
            "entries": [
                {
                    "type": "minecraft:item",
                    "name": "minecraft:diamond",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:iron_block",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:gold_ingot",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 1,
                                "max": 3
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:copper_ingot",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 1,
                                "max": 3
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:iron_ingot",
                    "weight": 10,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 1,
                                "max": 3
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:gold_nugget",
                    "weight": 15,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 3,
                                "max": 10
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:iron_nugget",
                    "weight": 15,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 3,
                                "max": 10
                            }
                        }
                    ]
                },
                {
                    "type": "minecraft:item",
                    "name": "minecraft:coal",
                    "weight": 15,
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": {
                                "type": "minecraft:uniform",
                                "min": 3,
                                "max": 6
                            }
                        }
                    ]
                }
            ]
        }
    ]
}