1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Item Tags Firework star

Discussion in 'Development' started by HeyDeniis_, Apr 13, 2021.

  1. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    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
     
    Last edited: Apr 14, 2021
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    English...??
     
    Primus likes this.
  3. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    sorry rsrs
     
    minijaham likes this.
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Primus likes this.
  5. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
  6. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    Primus likes this.
  7. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    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
     
    Last edited: Apr 20, 2021
    Primus likes this.
  8. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    Solved
    resolution
    PHP:
    $color = new Color(10000); //rgb
    $itemNamedTag->setInt("customColor"Binary::signInt($color->toARGB()));
     
    minijaham likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.