1

[Forge]Reference other mod items for recipe...

TheXWolf 8/19/14 12:05 am
375
8/19/2014 7:11 pm
Hey there folks, so I'm updating my mod a little bit and I wanted to add a new material and armor. Now I've done this all before (if you've seen my SiriusMC mod:http://www.planetminecraft.com/mod/17-forgesiriusmc---utility-fuel-amp-novelty/ you'll know.) I'm using the oreDict to avoid giving people too much crap.

Here's my issue, I want to make a new item that requires Tin Ingots and Copper Ingots. But...I don't want to actually add the items (again to avoid duplication) to my mod but if a player had a mod that already includes Copper & Tin ingots (such as MFR/TE/Steampunkd etc.) they'll have access to a new item and recipes.

How do I setup the code so it looks for that and adds the recipe. I've tried using IRecipe with strings "ingotCopper" etc but even when I test it with existing mods it won't load. The errors come from the crafting manager. The closest I got was using
GameRegistry.addRecipe(new ItemStack(bronzeBar), new Object[]{" ","ZZX"," ",('Z'),"ingotCopper",('X'),"ingotTin"});
and even then the crafting manager crashes. I'm guessing cus it can't reference those items. As it is I'd like to use shapeless but that gave me even more issues.

Can anyone shed some light on this for me?
Posted by
TheXWolf
Level 38 : Artisan System
9

  Have something to say?

JoinSign in

1

TheXWolf
08/19/2014 7:11 pm
Level 38 : Artisan System
No one has an idea? Still can't seem to get it. (Hope the bump is ok,)
1

Welcome