{
    "type": "minecraft:chest",
    "pools": [{
        "rolls": 1,
        "entries": [{
            "type": "minecraft:item",
            "name": "levelhearts:heart_container",
            "weight": 8,
            "functions": [{
                "function": "set_count",
                "count": {
                    "min": 0,
                    "max": 1
                }
            }]
        }, {
            "type": "minecraft:item",
            "name": "levelhearts:heart_piece",
            "weight": 6,
            "functions": [{
                "function": "set_count",
                "count": {
                    "min": 0,
                    "max": 2
                }
            }]
        }]
    }]
}