The item Firework Star (minecraft: fireworkscharge) has color variations, but from what I saw to get them it doesn't use the meta (damage), it is necessary to apply tags to the item (correct me if I'm wrong) it should work like a banner but if it works like that I couldn't find anything that tells me which tag and which values are accepted so that the change can be made, if someone can help me with information I thank you! s2
I'll be honest, I honestly have no clue on how so here's a plugin I found that could help. https://github.com/BlockHorizons/Fi...9770b46ade01e87dc/src/BlockHorizons/Fireworks I skimmed through the code and you should be able to find what you wanted here.
https://github.com/BlockHorizons/Fi...Horizons/Fireworks/item/Fireworks.php#L59-L65 Here, specifically
thanks but what I wanted was just the powder from the fires as in that limk https://minecraftbedrock-archive.fandom.com/wiki/Firework_Star
Oh, hmm... Considering that the firework star can be given with command: Code: /give @p firework_charge 1 0 {Explosion:{Colors:[1 1 1]}} Maybe you can do something with this? I'm not sure if this would work in Bedrock though
Solved resolution PHP: $color = new Color(100, 0, 0); //rgb$itemNamedTag->setInt("customColor", Binary::signInt($color->toARGB()));