I know how to use the oredictionary for crafting. But my question is a little more advanced than just:
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.planks, 2, 0), new Object[] {"%", '%', "logWood"}));
for example.
I would like to be able to do something like this:
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack("plankWood"), new Object[] {"%", '%', "logWood"});
I know that the code here is wrong because there needs to be a block in the place of "plankWood" rather than a string. I have tried using:
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood, 1, WILDCARD_VALUE));, new Object[] {"%", '%', "logWood"});
and this works, but it will only ever give out Oak wood as the result rather than the proper planks.
Does any one have any thought on how to correct this?