Hello guys i've a problem with 1.5 coding. Some time ago, i made a simple mod that able you to "repair " damaged items, look at this piece of code:
GameRegistry.addRecipe(new ItemStack(Item.swordWood), new Object[] {" Y ", " X ", " ", 'X', new ItemStack(Item.swordWood, 1, -1), 'Y', Block.planks});
Well, with this code you can craft one brand new wooden sword with one damaged wooden sword and whatever block of planks, this works well in 1.4.7, but not in 1.5.1.
Anybody can help me please.
Thanks.