Posted November 27, 201410 yr So, I have this block that saves it's inventory using NBT. That's all good but I cannot figure out how to return an Item from an unlocalized name (saved in the NBT). Thanks in Advance.
November 27, 201410 yr I'd recommend using the writeToNBT and readFromNBT methods already provided by ItemStacks instead of saving item names
November 27, 201410 yr But if you must use item names, provided that you know the modid for said item, you could use GameRegistry.findItem(modid,name)
November 27, 201410 yr 'Unlocalized names' have nothing to do with that registry tho. However, you can get the name for any item through that registry, so use it. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.