Posted July 21, 201510 yr I made crafting recipe that i want be able to use both Log which is spruce jungle oak and birch but Minecraft has log2 which is acaScia and dark oak right now I can only use log im my crafting recipe how can i make the other one part of it too?
July 22, 201510 yr Hi This might be useful too http://greyminecraftcoder.blogspot.com.au/2015/02/recipes.html -TGG
July 23, 201510 yr Author What do i add after OreDictionary there is a lot of choices GameRegistry.addRecipe(new ItemStack(BlockFirewood,4),new Object[]{" L ","L L"," L ",'L',new ItemStack(OreDictionary.??)}); And also how would I Add an axe into this recipe that takes one damage and returns it to you and make it non specific to the axe type
July 23, 201510 yr To use ore dictionary ingredients, you need to create a ShapedOreRecipe or ShapelessOreRecipe and add it with GameRegistry.addRecipe. To make a recipe that damages an axe, you need to create your own recipe class. I wrote a class here that does exactly that (I add an instance of it here). This doesn't support ore dictionary ingredients, but you could adapt it to extend ShapelessOreRecipe instead of ShapelessRecipes. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
July 23, 201510 yr Author To use ore dictionary ingredients, you need to create a ShapedOreRecipe or ShapelessOreRecipe and add it with GameRegistry.addRecipe. To make a recipe that damages an axe, you need to create your own recipe class. I wrote a class here that does exactly that (I add an instance of it here). This doesn't support ore dictionary ingredients, but you could adapt it to extend ShapelessOreRecipe instead of ShapelessRecipes. im getting one erroror in the Shapeless Cutting Recipe class, the error is at remainingItems = net.minecraftforge.common.ForgeHooks.getContainerItem(itemstack); eclipse tells me "the method getContainerItem(itemstack)is undefined for the type ForgeHooks" I'm able to load Minecraft and craft it but it eats my axe also is this correct way to register my recipe I renamed Shapeless cutting recipe to FirewoodAxe GameRegistry.addRecipe(new FirewoodAxe(new ItemStack(BlockFirewood, 4), new ItemStack(Items.wooden_axe, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Blocks.log,1,OreDictionary.WILDCARD_VALUE))); -Thanks everyone for the help
July 23, 201510 yr It seems that IRecipe#getRemainingItems was only added in 1.8. I'm not sure it's possible to do this with vanilla items in 1.7.10. For your own items, you can use the container item system to damage the item with each craft. I have an example of this here. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.