Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

 

 

can you please explain what each of the vars are, I might be able to help then...

because as of now the variables are all set to null... Please put in more code

The Korecraft Mod

  • Author

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

  • Author

Forgot it i change my idea (Speigers DynamicTools mod)

 

But all work. And Lex I made a metadata Tool And it works....

 

Thanks for reading. Speiger

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.