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