Jump to content

[1.3.2][Solved]Crafting recipes like vannila repair recipes


Moritz

Recommended Posts

Hello.

 

I have problems with my crafting recipes. They are too much.

I got an idea how to solve the problem but then comes to much errors.

Here is my idea Code:

 

public String getItemDamage()

{

    String var1 = var4;

    if(var2>var3)

    {

        var4 = var2;

          return;

    }

    if(var3>var2)

    {

        var4 = var3;

        return;

    }

 

      Modloader.addRecipe(new ItemStack(mod_Blabla.customTool, 1, var1), new Object[]{"Y", "X", Character.valueOf('Y') new ItemStack(customPick, 1, var2), Character.valueOf('X'), new ItemStack(customStick, 1, var2)});

 

 

Link to comment
Share on other sites

sry that is not possibel..

 

i want to make it like industrialcraft lappacks when you have energie in the batpack...

 

public class mod_blabla extends BaseMod

{

 

    public static Item customStick = new ItemCustomStick(6000).setItemName("customStick");

    public static Item customPickaxeHead = new ItemCustomPickaxeHead(6002).setItemName("customPickaxeHead");

    public static Item metadataPickaxe = new ItemMetadataPickaxe(6003).setItemName("metadataPickaxe");

 

 

  //problem Zone

 

  public void load()

  {

    ModLoader.addRecipe(new ItemStack(mod_DynamicTools.metadatapickaxe, 1, 0), new Object[]{"Y", "X", Character.valueOf('X), new ItemStack(customStick, 1, 0), Character.valueOf('Y), new ItemStack(customPickaxeHead, 1, 0)});

 

    }

}

 

what i want is like industrialcraft bat to lap crafting recipe or vannila tool repair recipe. i dont have the variabel.

 

The crafting recipe read the metadata and which is higher will be the metadata of the tool that was my idea but i have no idea how to do it... I read much source codes to find it out... nothing...

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