Posted June 30, 201411 yr I've been trying to damage an item after using it to craft something but I can't figure it out. I've already successfully used the IRecipe interface but I don't know how to put an item back into the crafting grid after I'm done crafting. I know I have to clone the item with 1 less durability but how exactly do I do it?
June 30, 201411 yr Author Thanks! I've managed to make my item stay in the crafting grid by simply doing setContainerItem(true) and overriding doesContainerItemLeaveCraftingGrid(ItemStack itemstack) but I need the item to take 1 damage every time I craft with it. If you know how please tell me.
June 30, 201411 yr Override getContainerItem and return a new ItemStack with one more damage. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.