Jump to content

[SOLVED] Get Material from the ID


suckycomedian

Recommended Posts

I'm a bit confused, why would you need a "Material" for a crafting recipe? It only describes stuff like this material can burn, be pushed and so on. Looking at the Materail class, it does not have any ID. Could you please describe better your problem?

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

Link to comment
Share on other sites

I'm a bit confused, why would you need a "Material" for a crafting recipe? It only describes stuff like this material can burn, be pushed and so on. Looking at the Materail class, it does not have any ID. Could you please describe better your problem?

 

Hmm the way Bukkit and Forge treat the word "Material" might be different. In minecraft you assign items an ID. For example, stone's ID is 1 and grass is 2 etc. Since the item is from an outside mod, I need to use the ID.

 

I'm trying to use the ID for something like this:

GameRegistry.addRecipe(new ItemStack(<item id>, 1), new Object[]{"XXX", "X X", Chatacter.valueOf('X'), <item id>});

Link to comment
Share on other sites

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.