{
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "item",
                    "name": "firework_star",
                    "functions": [
                        {
                            "function": "set_custom_model_data",
                            "floats": {
                                "mode": "replace_all",
                                "values": [
                                    {
                                        "type": "score",
                                        "score": "blade2_sparks",
                                        "target": "this"
                                    }
                                ]
                            }
                        },
                        {
                            "function": "set_components",
                            "components": {
                                "item_model": "sword:sparks",
                                "custom_data": "{blade2_offhand:1b}",
                                "item_name": "火种",
                                "rarity": "uncommon",
                                "lore": [
                                    {"text":"『侵晨』的特殊资源条。[火种]可通过释放战技或受击获取。","color":"gray","italic": false},
                                    {"text":"[火种]到达12点时可激活终结技，最高累积15点。","color":"gray","italic": false}
                                ],
                                "max_stack_size": 99
                            }
                        },
                        {
                            "function": "set_count",
                            "count": {
                                "type": "score",
                                "score": "blade2_sparks",
                                "target": "this"
                            },
                            "conditions": [
                                {
                                    "condition": "value_check",
                                    "value": {
                                        "type": "score",
                                        "score": "blade2_sparks",
                                        "target": "this"
                                    },
                                    "range": {
                                        "min": 1,
                                        "max": 99
                                    }
                                }
                            ]
                        },
                        {
                            "function": "set_count",
                            "count": 99,
                            "conditions": [
                                {
                                    "condition": "value_check",
                                    "value": {
                                        "type": "score",
                                        "score": "blade2_sparks",
                                        "target": "this"
                                    },
                                    "range": {
                                        "min": 100
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}