Posted January 31, 201510 yr 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!
January 31, 201510 yr 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
January 31, 201510 yr Author 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));
January 31, 201510 yr 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.
January 31, 201510 yr Author 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.