Jump to content

[1.10] Using other mod's Items in my recipes


jawsawn

Recommended Posts

1 hour ago, jawsawn said:

And how do I get the modname and the item name?

Try running Minecraft with the mod installed. Watch the console (or read the log afterward). There should be loads of loader info in there.  Turn on in-game debugging (F3 in my version) and examine items/blocks.

 

You should also peak inside the mod's JAR file. Even if the java source isn't in there, you should still be able to see all of its resources such as the language file(s) and blockstates files etc. You can learn a LOT from those.

 

This is Minecraft; learn to dig  ;)

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

Well you guys weren't that helpful, I have figured it out for future references:

 

if (Loader.isModLoaded("thermalfoundation")) {GameRegistry.addRecipe(

new ShapelessOreRecipe(new ItemStack(Item.getByNameOrId("thermalfoundation:material"),2,132),"ingotIron")); 

}
Link to comment
Share on other sites

That's essentially what diesieben07 told you to do, except you're using the vanilla method instead of the Forge method.

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.

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.