Posted March 6, 201411 yr Just as the title explains How can I add a metadata item to my inventory using it's unlocalized name? using par2EntityPlayer.inventory.addItemStackToInventory(new ItemStack(sample,1)); thanks I'm always happy to help others! Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL
March 7, 201411 yr Unlocalized name is only used in the IDE. You want the registered name of the Block or Item. The one you used when you called GameData.register{Block|Item}() -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
March 7, 201411 yr Author ah okay thanks! I'm always happy to help others! Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL
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.