Jump to content

Recommended Posts

Posted

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?

Posted

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

 

 

Posted

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.

Posted

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

 

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.