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

Making an item look enchanted

Discussion in 'Development' started by RoyalMCPE, May 9, 2017.

  1. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    How can I make an item look enchanted without adding an enchant to it?
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    something useless, like prot one most times just so their items are shiny
     
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Add the 'ench' tag.
    EDIT: Updated to API 3.0.0-ALPHA9+
    PHP:
    public function glowItem(Item $item) : void{
        
    $item->setNamedTagEntry(new ListTag("ench"));
    }
     
    Last edited: Dec 21, 2017
    Taco, OnTheVerge, Az928 and 5 others like this.
  4. Phqzing

    Phqzing Spider

    Messages:
    8
    GitHub:
    phqzing
    Can you please provide an example code? Cuz I can't figure out how I can implement this
     
  5. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Someone ban him i swear
     
    HippoBaguette likes this.
  6. Ayush

    Ayush Witch

    Messages:
    62
    He need full plugin!
    Make your own ban him please u r not a developer
     
  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.