{
    "type": "minecraft:chest",
    "pools": [
        {
            "entries": [
                {
                    "type": "minecraft:tag",
                    "expand": true,
                    "functions": [
                        {
                            "count": {
                                "max": 8,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:candles",
                    "weight": 6
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.375,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 12,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:gunpowder",
                    "weight": 8
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.5,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 11,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:paper",
                    "weight": 12
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.5,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": {
                                    "max": 3,
                                    "min": 1
                                },
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:book",
                    "weight": 3
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.5,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 8,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:leather",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 5,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:bone_block",
                    "weight": 2
                }
            ],
            "rolls": 4
        },
        {
            "entries": [
                {
                    "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": 2
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.65,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 8,
                                "min": 3
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:iron_ingot",
                    "weight": 5
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.4,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 6,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:gold_ingot",
                    "weight": 4
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 12,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:copper_ingot",
                    "weight": 7
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.5,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "count": {
                                "max": 2,
                                "min": 1
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:copper_block",
                    "weight": 2
                },
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "count": {
                                "max": 6,
                                "min": 4
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:iron_nugget",
                    "weight": 9
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 15,
                                "min": 7
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:gold_nugget",
                    "weight": 9
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.5,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "count": {
                                "max": 7,
                                "min": 2
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:lapis_lazuli",
                    "weight": 1
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.1,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "name": "minecraft:diamond",
                    "weight": 1
                }
            ],
            "rolls": {
                "max": 2,
                "min": 1
            }
        },
        {
            "entries": [
                {
                    "type": "minecraft:tag",
                    "conditions": [
                        {
                            "chance": 0.75,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "expand": true,
                    "functions": [
                        {
                            "conditions": [
                                {
                                    "chance": 0.75,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "damage": {
                                "max": 0.75,
                                "min": 0
                            },
                            "function": "minecraft:set_damage"
                        },
                        {
                            "conditions": [
                                {
                                    "chance": 0.75,
                                    "condition": "minecraft:random_chance"
                                }
                            ],
                            "function": "minecraft:enchant_with_levels",
                            "options": "#minecraft:on_random_loot",
                            "levels": {
                                "max": {
                                    "max": 24,
                                    "min": 7
                                },
                                "min": 5
                            }
                        }
                    ],
                    "name": "terralith:spire/common_tools"
                }
            ],
            "rolls": 1
        },
        {
            "entries": [
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.125,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:enchant_randomly",
                            "options": "#minecraft:on_random_loot"
                        }
                    ],
                    "name": "minecraft:book"
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "chance": 0.125,
                            "condition": "minecraft:random_chance"
                        }
                    ],
                    "functions": [
                        {
                            "function": "minecraft:enchant_with_levels",
                            "levels": {
                                "max": 15,
                                "min": 1
                            },
                            "options": "#minecraft:non_treasure"
                        }
                    ],
                    "name": "minecraft:book"
                }
            ],
            "rolls": 2
        }
    ]
}