Solved Item Tags Firework star

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

  1. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    127
    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 Zombie Pigman

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

    HeyDeniis_ Baby Zombie

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

    minijaham Zombie Pigman

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

    minijaham Zombie Pigman

    Messages:
    737
    GitHub:
    minijaham
  6. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    127
    Primus likes this.
  7. minijaham

    minijaham Zombie Pigman

    Messages:
    737
    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:
    127
    Solved
    resolution
    PHP:
    $color = new Color(10000); //rgb
    $itemNamedTag->setInt("customColor"Binary::signInt($color->toARGB()));
     
    minijaham likes this.

Share This Page

  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.