I'm trying to make a command that executes at a firework_rocket entity with specific nbt (In this case explosion colours), and runs a certain command whenever such a firework is present, however, nothing happens.
Here is the /execute command in question
execute at @e[type=firework_rocket,nbt={FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Colors:[I;11743532,3887386]}]}}}}] run say dootIf this worked, it should react by saying doot constantly every time any single firework rocket with a matching explosion was flying. It doesn't.
The nbt should be identical to the one summoned with this command (I checked)
/summon firework_rocket ~ ~1 ~ {FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Colors:[I;11743532,3887386]}]}}}}And it should also react whenever a player used the rocket given as an item with this command
/give @p firework_rocket{Fireworks:{Explosions:[{Colors:[I;11743532,3887386]}]}} 1Not a single of these commands works, and I checked that the nbt is identical for each of them, yet nothing happens.
11 Answer
You need to match the formats exactly, for example 1b instead of 1. You can check the NBT with data get.