Minecraft – Spotting the coordinates where fireworks has light

minecraft-commandsminecraft-java-edition

I want to spot the coordinates when someone light a firework, and save the coordinates that firework has been lighted. I tried to use testfor, but I see that it has been removed on 1.13.2. I am new to the JSON system. Can someone give me ideas on how I can do it?

Best Answer

Thanks to Reddit and @SpiceWeasel , I solved it! I made smoke summoned on every fired firework, and made all other placements based to that smoke.