For a map I am making, I am trying to detect when a player boosts with a firework. I've searched all over and cannot find anything. I tried to use
/scoreboard objectives add [name] stat.useItem.minecraft.fireworks
to get a player to a score of 1, then make a repeating command block that does something for all players with a score of one etc, but it only works for launching a firework on a block, not while flying the elytra.
I looked at all of the stat.____
criteria and can't find anything that can seem to do this. Can anyone help?