Here you go (other developers, correct me if I'm wrong!): PHP: //This method may be outdated, but I think it should work$item->setCustomName($name);
Yes, you can use setCustomName() to set the custom name of an item, or you can just directly edit the named tag of the item. Spoiler: If you need some idea, click here! PHP: $item = new Item(1,0,1);//A rock$nbt = new CompoundTag();$nbt->display = new CompoundTag("display");$nbt->display->Name = new StringTag("Name","WhatEverYouWantToNameThisItem");$item->setNamedTag($nbt); For the full minecraft tag references, visit here! Note: some of the tags you see in the link above might not work in MCPE, so the best way to see if it work is to test it out