Hi. I am trying to make a mod that uses tools in the crafting recipes, but it only works with non-damaged tools! Does anyone know how I can use damaged items in crafting?
1
When you're defining the item in a crafting recipe, instead of using just the item name, do this:
new ItemStack(Itemname, 1, -1)
The 1 value is just to tell MC it is one object, and the -1 is a metadata that tells minecraft to use an item no matter what it's metadata is.
new ItemStack(Itemname, 1, -1)
The 1 value is just to tell MC it is one object, and the -1 is a metadata that tells minecraft to use an item no matter what it's metadata is.
