Posted February 23, 201510 yr I have an item with NBT that I want to change when it is crafted with certain items. How would I do this? Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.
February 24, 201510 yr That depends on what exactly you are tring to do. If its something simple like increment a value you can make it a container item. Otherwise you will probably need a custom IRecipe class. I am the author of Draconic Evolution
February 24, 201510 yr Ähm, I am pretty sure that I am changing the outcome in my event handler with an ItemCraftedEvent. I use it to add poisons (=nbt tags) to all food items. https://github.com/Jacky2611/DimensionShiftCore/blob/master/src/main/java/net/dimensionshift/mod/event/EventHandlerDimensionShift.java Here could be your advertisement!
February 24, 201510 yr Yeah, but he just wants to change some nbt tags, so I doubt that there will be rendering errors. And it worked fine for me no matter which crafting table I used. Here could be your advertisement!
February 24, 201510 yr Author I solved it. All I had to do was make a new item stack with my item, add the NBT tag to it, then add the recipe with the output being the item stack that I created. Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.
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.