Posted December 31, 201212 yr I can have item named but it can always be white.So how can I make some name to other color?
January 1, 201312 yr I believe that the answer is to add the getRarity(ItemStack) method in your class that extends Item. I recommend that you also look at EnumRarity to find the rarity, or item name's color, that you want.
January 3, 201312 yr i made a tutorial for this a while back. i'm not an expert at java nor am i an expert at modding but i think i did a good job with the tutorial. LanguageRegistry.addName(DragonSword, "\u00a7~ Item Name"); replace the ~ with the color code. for more info including the color codes you can check my basic tutorial here http://darkhaxspace.weebly.com/colored-text.html hope it helps
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.