#summon minecraft:firework_rocket ~ ~ ~ {LifeTime:30,ShotAtAngle:1,Tags:["firework_from_arrow"],FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:4,Flicker:1b,Trail:1b,Colors:[I;16711680,16750848],FadeColors:[I;16756833,16760591]}]}}}}
summon minecraft:firework_rocket ~ ~ ~ {LifeTime:30,ShotAtAngle:1,Tags:["firework_from_arrow"],FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:4,Flicker:1b,Trail:1b,Colors:[I;16711680,16750848],FadeColors:[I;16756833,16760591]}]}}}}
data modify entity @e[tag=firework_from_arrow,limit=1] Motion set from entity @s Motion
tag @e[tag=firework_from_arrow,limit=1] remove firework_from_arrow
kill @s