There's literally a function that includes "Lore" in its name. Have you considered checking the source? https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/item/Item.php
Ack its been 5 months since i touched PHP so i may be wrong or this may be outdated... (or since im guessing the method names cause im a lazy fuck the method names may be wrong) PHP: public function chat(PlayerChatEvent $event){ $player = $event->getPlayer(); $lore = array(TextFormat::RED . "Ability: Arcane Beam", TextFormat::GREEN . "Deals 5 Damage"); $item = new ItemStack(Material::DIAMOND_SWORD); $meta = $item->getItemMeta(); $meta->setLore($lore); $item->setItemMeta($meta); $player->setItemInHand($item); $player->updateInventory();}
ItenStack isn't a class right now... $item = Item::get($id, $meta, $count); $item->setLore($lore); $player->getInventory()->setItemInHand($item);
Well i did say i was lazy to find the right methods and this was just a rough example EDIT: Also im giving him an idea of how to do it and not directly spoon feeding him xd