Steps to reproduce:
Run the following command twice.
/summon minecraft:item_display ~ ~ ~ {item: {id: firework_star, components: {firework_explosion: {shape: small_ball, colors: [I; 0]}}}}
Modify one of them with following command.
/data modify entity @e[type=minecraft:item_display,limit=1,sort=nearest] item.components."minecraft:firework_explosion".colors set value [I; 16777215]
Quit and rejoin.
Both firework stars are displayed white.
I wrote down some code and found these 200 pairs of duplicates. Textures are from 1.19 assets.
[media][media]
It works as intended.
In 1.20.5 changes,
Changes to minecraft:item options:
Field `value` has been renamed to `item`
Field `item` now also accepts plain item name to represent item stack with default components
Therefore,
will work fine.