Results 1 to 2 of 2
  1. #1
    animepkmn's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    87
    Reputation
    11
    Thanks
    11
    My Mood
    Sleepy

    [Creating Mods] How to add Recipies - animepkmn

    Hello!

    I've been making minecraft mods and i didn't now that there weas a minecraft forum S:! So i just made a tutorial on which it will begin right....


    NOW!

    You will need -
    MCP
    Knowing how to decompile
    A text editor with syntax highlight(such as eclipise, notepad++)

    1. Decompile minecraft.jar
    2. Go to sources>minecraft>net>minecraft>src
    3. Look for "CraftingManager.java"
    4. Open it with a text editor such as notepad++
    5. Now you will see a bunch of recipies if you go further down.
    6. Make a new line after });

    Now i will teach you how the recipe line works and how to do it.

    Here is a recipe i got from the java file.

    addRecipe(new ItemStack(Item.bread, 1), new Object[] {
    "###", Character.valueOf('#'), Item.wheat
    });

    addRecipe - It will tell the system that there will be a recipe and that it can be used.

    (new ItemStack(Item.bread, 1), new Object[] { - new item stack means that it will make a new item when it is created. In this recipe, it will bring out bread. Anything that is placable is a block. If you wanna make a recipe with a final item with a block or a block must be used for a recipe, use Block. .

    "###", Character.valueOf('#'), Item.wheat - Read the line. You will see that "#" is the wheat. So that will be like the ingridient of the item/block you will make.


    And thats all what you need to know!

    Recompile and reobf this.


    NOTE: PUT CraftingManager on conf>client_reobfuscation.txt

    ~animepkmn~

  2. #2
    FullStatic's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Minecraft Section
    Posts
    935
    Reputation
    -41
    Thanks
    55
    My Mood
    Aggressive