Posted August 6, 20169 yr I'm using getByNameOrId to get an item from a string, like this: Item myItem = Item.getByNameOrId("minecraft:iron_ingot"); My problem is, how can I do the same, but also consider a metadata, for example for modded items if I need to reference X mod that use ingots and metadatas for the different ones.
August 6, 20169 yr Create an ItemStack of that Item with the appropriate metadata. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 6, 20169 yr Author Create an ItemStack of that Item with the appropriate metadata. And then I get the item from the created itemStack? Thanks, gonna try that
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.