Modding: Recipe with IC2 Items

  • Hallo,




    could somebody say me how i can make a shaped recipe with Items from Industrial Craft 2 using the API


    for example


    RRR


    RAR


    RRR




    R = Reactor chamber


    A = Advanced Machine Block




    thanks for help


    Alexander Prod.

  • Having never coded an addon for IC2, I'm not sure, but I believe it would be
    GameRegistry.addCraftingRecipe(new ItemStack(/*your item here*/), new Object[]{ "RRR", "RAR", "RRR", 'A', Items.getItem("Advanced Machine" /*not certain if this is the right name*/), 'R', Items.getItem("Reactor Chamber")});


    Also, this should probably go in Addon Discussion rather than the published Addon section.

    Is the answer to this question no?


    Quote

    Hey don't take it so hard. Ignorance is part of this generation it seems. -the wise words of XFmax-o-l

  • Having never coded an addon for IC2, I'm not sure, but I believe it would be
    GameRegistry.addCraftingRecipe(new ItemStack(/*your item here*/), new Object[]{ "RRR", "RAR", "RRR", 'A', Items.getItem("Advanced Machine" /*not certain if this is the right name*/), 'R', Items.getItem("Reactor Chamber")});


    Also, this should probably go in Addon Discussion rather than the published Addon section.


    thanks bro ! :)