Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Renamed, Enchanted Item (with API)

Comments in 'Resources' started by korado531m7, Apr 20, 2016.

  1. korado531m7
    Offline

    korado531m7 Active Member

    Joined:
    Apr 4, 2015
    Posts:
    158
    Minecraft User:
    korado531m7
    Rename Item
    PHP:
    $inventory->addItem(Item::get(276,0,1,"{display:{Name:CUSTOM NAME HERE}}"));
    //Ex: {display:{Name:Magical Sword}} #Give Magical Sword (Diamond Sword)
    Enchanting Item
    PHP:
    $inventory->addItem(Item::get(276,0,1,"{ench:[{id:IDs,lvl:LEVELs}]}"))
    //Ex: {each:[{id:1s,lvl:3s}]} #3 Level, Damage Protection
    Renamed and Enchanted
    PHP:
    $inventory->addItem(Item::get(276,0,1,"{display:{Name:CUSTOM NAME HERE},ench:[{id:IDs,lvl:LEVELs}]}"))
    Or, Please Use My Item API
    Download URL: http://korado.s602.xrea.com/TagNameAPI/
    Please change the language (Default is Japanese)

    You can make a item object with renamed
    PHP:
    //use TagNameAPI\Main as TagNameAPI;
    $inventory->addItem(TagNameAPI::item(276,0,1,"Renaming"));
    My api plugin has many feature

    Please read instruction in the zip file
    Last edited: May 3, 2016

Share This Page

Advertisement