execute store result score .firework temp run random value 1..40

execute if score .firework temp matches 1 run summon firework_rocket ~ ~ ~ {LifeTime:20,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",colors:[I;16711680]}]}}}}
execute if score .firework temp matches 2 run summon firework_rocket ~ ~ ~ {LifeTime:25,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",has_twinkle:true,colors:[I;16711680]}]}}}}
execute if score .firework temp matches 3 run summon firework_rocket ~ ~ ~ {LifeTime:22,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",colors:[I;3669801]}]}}}}
execute if score .firework temp matches 4 run summon firework_rocket ~ ~ ~ {LifeTime:31,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",has_twinkle:true,colors:[I;3669801]}]}}}}
execute if score .firework temp matches 5 run summon firework_rocket ~ ~ ~ {LifeTime:19,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",colors:[I;13827868]}]}}}}
execute if score .firework temp matches 6 run summon firework_rocket ~ ~ ~ {LifeTime:22,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",has_twinkle:true,colors:[I;13827868]}]}}}}
execute if score .firework temp matches 7 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",colors:[I;2194175]}]}}}}
execute if score .firework temp matches 8 run summon firework_rocket ~ ~ ~ {LifeTime:28,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",has_twinkle:true,colors:[I;2194175]}]}}}}
execute if score .firework temp matches 9 run summon firework_rocket ~ ~ ~ {LifeTime:31,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",colors:[I;16721446]}]}}}}
execute if score .firework temp matches 10 run summon firework_rocket ~ ~ ~ {LifeTime:37,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:true,colors:[I;16721446]}]}}}}
execute if score .firework temp matches 11 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",colors:[I;7143247]}]}}}}
execute if score .firework temp matches 12 run summon firework_rocket ~ ~ ~ {LifeTime:20,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:true,colors:[I;7143247]}]}}}}
execute if score .firework temp matches 13 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",colors:[I;3718655]}]}}}}
execute if score .firework temp matches 14 run summon firework_rocket ~ ~ ~ {LifeTime:31,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:true,colors:[I;3718655]}]}}}}
execute if score .firework temp matches 15 run summon firework_rocket ~ ~ ~ {LifeTime:24,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",colors:[I;15876863]}]}}}}
execute if score .firework temp matches 16 run summon firework_rocket ~ ~ ~ {LifeTime:28,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:true,colors:[I;15876863]}]}}}}
execute if score .firework temp matches 17 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",colors:[I;2500351]}]}}}}
execute if score .firework temp matches 18 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",has_twinkle:true,colors:[I;2500351]}]}}}}
execute if score .firework temp matches 19 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",colors:[I;7012165]}]}}}}
execute if score .firework temp matches 20 run summon firework_rocket ~ ~ ~ {LifeTime:25,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",has_twinkle:true,colors:[I;7012165]}]}}}}
execute if score .firework temp matches 21 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",colors:[I;16722217]}]}}}}
execute if score .firework temp matches 22 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",has_twinkle:true,colors:[I;16722217]}]}}}}
execute if score .firework temp matches 23 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",colors:[I;15859497]}]}}}}
execute if score .firework temp matches 24 run summon firework_rocket ~ ~ ~ {LifeTime:25,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",has_twinkle:true,colors:[I;15859497]}]}}}}
execute if score .firework temp matches 25 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",colors:[I;16777215]}]}}}}
execute if score .firework temp matches 26 run summon firework_rocket ~ ~ ~ {LifeTime:20,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"star",has_twinkle:true,colors:[I;16777215]}]}}}}
execute if score .firework temp matches 27 run summon firework_rocket ~ ~ ~ {LifeTime:24,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",colors:[I;16777215]}]}}}}
execute if score .firework temp matches 28 run summon firework_rocket ~ ~ ~ {LifeTime:31,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"large_ball",has_twinkle:true,colors:[I;16777215]}]}}}}
execute if score .firework temp matches 29 run summon firework_rocket ~ ~ ~ {LifeTime:18,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",colors:[I;16777215]}]}}}}
execute if score .firework temp matches 30 run summon firework_rocket ~ ~ ~ {LifeTime:35,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"small_ball",has_twinkle:true,colors:[I;16777215]}]}}}}
execute if score .firework temp matches 31 run summon firework_rocket ~ ~ ~ {LifeTime:40,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",colors:[I;392973]}]}}}}
execute if score .firework temp matches 32 run summon firework_rocket ~ ~ ~ {LifeTime:22,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",has_twinkle:true,colors:[I;392973]}]}}}}
execute if score .firework temp matches 33 run summon firework_rocket ~ ~ ~ {LifeTime:39,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",colors:[I;16752950]}]}}}}
execute if score .firework temp matches 34 run summon firework_rocket ~ ~ ~ {LifeTime:50,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",has_twinkle:true,colors:[I;16752950]}]}}}}
execute if score .firework temp matches 35 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",colors:[I;4404991]}]}}}}
execute if score .firework temp matches 36 run summon firework_rocket ~ ~ ~ {LifeTime:34,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",has_twinkle:true,colors:[I;4404991]}]}}}}
execute if score .firework temp matches 37 run summon firework_rocket ~ ~ ~ {LifeTime:16,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",colors:[I;16721078]}]}}}}
execute if score .firework temp matches 38 run summon firework_rocket ~ ~ ~ {LifeTime:32,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",has_twinkle:true,colors:[I;16721078]}]}}}}
execute if score .firework temp matches 39 run summon firework_rocket ~ ~ ~ {LifeTime:38,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",colors:[I;9109456]}]}}}}
execute if score .firework temp matches 40 run summon firework_rocket ~ ~ ~ {LifeTime:21,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{explosions:[{shape:"creeper",has_twinkle:true,colors:[I;9109456]}]}}}}