einsteinsci Posted March 29, 2015 Share Posted March 29, 2015 In 1.7 I could override Item.doesContainerItemLeaveCraftingGrid() to set if an item's container leaves the crafting grid once an item is crafted. However, it seems this function no longer exists in 1.8, and looking through the Item class I haven't found any similarly named functions. What am I supposed to use instead of this? I have looked at this thread: http://www.minecraftforge.net/forum/index.php/topic,27948.msg143500.html, and its answer is simply the same function I was using in 1.7. Quote Link to comment Share on other sites More sharing options...
einsteinsci Posted March 29, 2015 Author Share Posted March 29, 2015 I have an item that is supposed to use up durability each time it is crafted in a recipe. In 1.7 I simply overrode doesContainerItemLeaveCraftingGrid() to return false, and overrode getContainerItem() to be itself with +1 damage. How do I do that in 1.8? Quote Link to comment Share on other sites More sharing options...
einsteinsci Posted March 29, 2015 Author Share Posted March 29, 2015 Ok, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.