Posted March 24, 20169 yr Hi! I have been searching around the web and haven't found anything on how to Localized items differently depending on the items metadata. I was also wandering if there is a way i can Localize item in code instead of in the lang file. Because I want the name to be able to change depending on user input.
March 25, 20169 yr Author I tried running getUnlocalizedName with the itemstack but it still only returns the UnlocalizedName the same for every Metadata.
March 25, 20169 yr diesieben07 explained what you need to do, tips: //this is what "load" the unlocalized name @Override public String getUnlocalizedName(ItemStack stack) { String s = "item." + this.unlocalizedName; [...] } stack.getMetadata(); // BSc CIS, hardcore gamer and a big fan of Minecraft. TmzOS ::..
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.