Posted February 8, 201411 yr Heyo! I was wondering how you could add lore to an item! Thanks! -Phase https://github.com/phase
February 8, 201411 yr By lore do you mean text under the item? public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("text here"); }
February 8, 201411 yr Author By lore do you mean text under the item? public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("text here"); } Ya! But, I don't know how to use that! https://github.com/phase
February 8, 201411 yr Sigh. Put it in your item class. You can add as many par3List.add("text here"); as you want, just be aware it creates a new line every .add("")
February 8, 201411 yr Author Sigh. Put it in your item class. You can add as many par3List.add("text here"); as you want, just be aware it creates a new line every .add("") So like this: public class FrittenDirt extends Block { public FrittenDirt(Material m) { super(m); setHardness(0.5f); setStepSound(Block.soundTypeGravel); setCreativeTab(CreativeTabs.tabAllSearch); setBlockName("frittenDirt"); setBlockTextureName("lucien:frittenDirt"); } public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("text here"); } } https://github.com/phase
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.