1

Forge help

Jackv_24 9/28/12 11:08 pm
182
9/30/2012 3:45 am
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?
Posted by
Jackv_24
Level 55 : Grandmaster Programmer
76

  Have something to say?

JoinSign in

1

IAmChosen
09/30/2012 3:45 am
Level 36 : Artisan Modder
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.
1

Welcome