Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

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));

Posted

To add onto Mitchellbrine's comment, add

dependencies = "after:*"

replacing * with the mod ID you want the item from, to your @Mod declaration in the main mod class.

Maker of the Craft++ mod.

Posted

Oh, sorry, forgot to add that to my previous reply. I've already done this.

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION, guiFactory = Reference.GUI_FACTORY_CLASS, dependencies = "after:ThermalExpansion;after:Baubles")

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.