You need a custom IRecipe implementation.
Look at Choonster's TestMod3 for an example of something similar.
Pay special attention to the _factories.json file in the assets.
Oh, at least you tried.
Now add a code tag at the top, then wrap it in a spoiler. Or better yet, make a github repo.
Also, update, 1.7.10 is no longer supported here.
If you look at the implementation of NBTTagCompound#setUniqueId, you'll see that it doesn't use the key you give it directly; it uses two different keys based on it. This means that NBTTagCompound#hasKey will never return true for the key you passed to NBTTagCompound#setUniqueId, you need to use NBTTagCompound#hasUniqueId instead.
ItemStack NBT is automatically synced to the client. If you're setting on the server but can't access it from Item#addInformation, you're doing something wrong. Post your code.
To create your own API or implement an existing one like IItemHandler/IFluidHandler; or to store data without having to serialise it to/deserialise it from NBT every time you want to access/modify it.
1
point
Important Information
By using this site, you agree to our Terms of Use.