Jump to content

Recommended Posts

Posted

Hello I would like to add in a crafting recipe that used 4 of any-type of wood. minecraft has the log and the log2. I know I can used the oreDictonary but i am having some trouble.

 

 

GameRegistry.addRecipe(new ItemStack(bcblocks.firewood), new Object[]{

" W ",

"W W",

" W ", 'W', new ItemStack(Blocks.log, OreDictionary.WILDCARD_VALUE)

});

 

 

The current recipe I have will craft using oak spruce birch and jungle

how do I add in the logWood from the ore dictonary?

 

Posted

Use the ShapedOreRecipie class directly. There are plenty of tutorials and examples on how to do this.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Thank you! Just knowing that I need to use the shapedOreRecipe helped me find something to create it.

 

 

GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(bcblocks.firewood), new Object[]{

" W ",

"W W",

" W ",

'W', ("logWood")

}));

 

 

 

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.