I had some code there. But then I remembered that fireworks entities need to be spawned instead of launched like an arrow.