Posted January 17, 20214 yr Hi! How do I make so that when I place in the smithing table a tool and a material, I get another material and decrease the durability of the tool without loosing the tool? I overrided the item container methods but the item is still consumed on craft: @Override public boolean hasContainerItem(ItemStack itemStack) { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { if (itemStack.attemptDamageItem(1, random, null)) { itemStack.shrink(1); itemStack.setDamage(0); } return itemStack; } Thanks in advance!
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.