Jump to content

How can I add a Lore to a Item Stack


OGMatrix

Recommended Posts

Hey my current code is this:
 

int itemId = Item.getIdFromItem(Item.getItemById(Minecraft.getMinecraft().thePlayer.inventory.currentItem));
Item item = Item.getItemById(itemId);
ItemStack i = new ItemStack(item.getContainerItem());
ArrayList<String> lore = new ArrayList();
lore.add("Test");
item.addInformation(i, Minecraft.getMinecraft().thePlayer, lore, true);

but this doesnt work and I dont know why can someone help?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.