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

How to dye leather armor?

Discussion in 'Development' started by Yexeed, Nov 20, 2017.

  1. Yexeed

    Yexeed Slime

    Messages:
    76
    Im trying to do it with nbt tags, but the armor is always black.
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Show your code
     
  3. Yexeed

    Yexeed Slime

    Messages:
    76
    PHP:
    public function setNbt($item){
            if((
    $hasTag $item->hasCompoundTag())){
                
    $tag $item->getNamedTag();
            }else{
                
    $tag = new CompoundTag("", []);
            }
            
    $tag->customColor = new IntTag("customColor"5); //or 6, 7, 8, 9...
            
    $item->setCompoundTag($tag);
            return 
    $item;
        }
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  5. ItzAribie

    ItzAribie Spider Jockey

    Messages:
    41
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    ItzAribie 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.