{
    "type": "minecraft:chest",
    "pools": [
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 7,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:snow_block",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:powder_snow_bucket",
                    "weight": 3
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 12,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:packed_ice",
                    "weight": 3
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 7,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:blue_ice",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 6,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:snowball",
                    "weight": 5
                }
            ],
            "rolls": 3
        },
        {
            "conditions": [
                {
                    "chance": 0.5,
                    "condition": "minecraft:random_chance"
                }
            ],
            "entries": [
                {
                    "type": "minecraft:tag",
                    "expand": true,
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.65,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 10
                            },
                            "options": "#minecraft:on_random_loot"
                        },
                        {
                            "damage": {
                                "max": 1,
                                "min": 0.5
                            },
                            "function": "minecraft:set_damage"
                        }
                    ],
                    "name": "terralith:spire/rare_tools"
                }
            ],
            "rolls": 1
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.2,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:enchant_randomly",
                            "options": "#minecraft:non_treasure"
                        }
                    ],
                    "name": "minecraft:book"
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.2,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 22,
                                "min": 1
                            },
                            "options": "#minecraft:non_treasure"
                        }
                    ],
                    "name": "minecraft:book"
                }
            ],
            "rolls": 3
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.5,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 3,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:diamond",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.33,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 11,
                                "min": 7
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:gold_ingot",
                    "weight": 3
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.2,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 3,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:iron_block",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.25,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 7,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:copper_block",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.25,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 7,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:weathered_copper",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.25,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 7,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:exposed_copper",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.25,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 7,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:oxidized_copper",
                    "weight": 1
                }
            ],
            "rolls": 3
        }
    ]
}