tubs Posted March 24, 2016 Posted March 24, 2016 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. Quote
tubs Posted March 25, 2016 Author Posted March 25, 2016 I tried running getUnlocalizedName with the itemstack but it still only returns the UnlocalizedName the same for every Metadata. Quote
TmzOS Posted March 25, 2016 Posted March 25, 2016 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(); Quote // BSc CIS, hardcore gamer and a big fan of Minecraft. TmzOS ::..
Recommended Posts
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.