Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

  • 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

 

 

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.

  • 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

 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.