Is there an event fired when a firework rocket explodes?

I want to be able to detect that, and then do something with it like spawn an extra regular explosion that can do damage to blocks and things. Is there an event for that? I assume that if it exists it is part of another event, how would I detect that?

I believe DestructEntityEvent.Death or potentially just DestructEntityEvent is the event you’re looking for. This is called whenever an entity is destroyed, I’m not sure if fireworks count as being “killed” however.

If you want to then access the firework that will be detonated, you can check for FireworkRocketData and FireworkEffectData or their related Keys.