Posted January 24, 20214 yr Hello, I've created a hammer item which damages some blocks when they are hit in the world. I want to be able to craft these blocks, however, the hammer just gets consumed when put in the crafting bench. I've tried adding a container item, however, that just returns the item. I have a max damage property on my item, and was wondering how I can damage it when something is crafted.
January 24, 20214 yr Author 26 minutes ago, diesieben07 said: Return an ItemStack that has one more damage. How would I get the existing damage on the item?
January 25, 20214 yr 1 hour ago, DeadZone said: How would I get the existing damage on the item? you don't need the existing damage, you can call ItemStack#damage() on the stack
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.