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

Custom Lore

Comments in 'Plugin Development' started by Kvetinac97, Feb 19, 2016.

  1. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    How can I set custom lore (it's text shown under the name of item, e.g. Fire Protection III...)?

    PHP:
    public function setCustomLore($item$lore){
     
    $c = new CompoundTag("", [new StringTag("idontknowwhattoputhere"$lore]);
    $item->setCompoundTag($c);
    return 
    $item;
    }

Share This Page

Advertisement