Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.10]Recipe with materials from another mod


grand_mind1
 Share

Recommended Posts

Hey, I read a couple old topics on this subject, but I didn't really understand them so sorry if this is repetitive. I've created a block that uses RF with the CoFH API and I want to add a recipe for it that uses an energy cell from Thermal Expansion. I'm not sure where to even start :/

All help is appreciated.

Thanks! :D

Link to comment
Share on other sites

Use GameRegistry.findItem, but make sure the mod is loaded first. You can do this with a soft or hard dependency.

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Link to comment
Share on other sites

Hey, thanks for the reply. I tried that, but I must be doing something wrong. The game doesn't seem to recognize the recipe.

GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.BlockPoweredAnvil), " c ", "iai", 'c', new ItemStack(GameRegistry.findItem("ThermalExpansion", "blockCell")), 'i', new ItemStack(Items.iron_ingot), 'a', new ItemStack(Blocks.anvil));

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.