Custom Armor Repair Material
Just what the name says. Once you've created a new type of armor, you find it repairable :O
To fix this, simply add this to your armor constructor:
canRepair = true;
And then add this method:
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
{
return YourItem.itemID == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack);
}
That's all.
To fix this, simply add this to your armor constructor:
canRepair = true;
And then add this method:
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
{
return YourItem.itemID == par2ItemStack.itemID ? true : super.getIsRepairable(par1ItemStack, par2ItemStack);
}
That's all.