Jump to content

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


Recommended Posts

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

 

 

Posted

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

Posted

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

Posted

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

×   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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

×
×
  • Create New...

Important Information

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