Minecraft Blogs / Tutorial

[OUT OF DATE!] [1.3.2] Modding For beginners! ( Crafting Recipe ) [WIndows]

  • 9,277 views, 1 today
  • 88
  • 46
  • 159
XCRAFTERS's Avatar XCRAFTERS
Level 32 : Artisan Creeper Hugger
46
This post is now out of date and I will not be updating it any time soon. Between school and work I do not get enough "free time" to do this. It was a fun time doing this in the past and thank you guys for ranking me up to level 25+ :)

-XCRAFTERS

P.S. There might be another mod that I am making coming out soon

Hello, my name is Sal, I will be teaching you how to make your very first minecraft mod for minecraft! Please have WINDOWS for this tut It is really easy, just follow these instructions below, and meet the following requirements:

REQUIREMENTS!
  • Basic Windows Knowledge
  • Java's eclipse [link below]
  • MCP [link below]

TUTORIAL:


Important: Run a clean fresh force update on your minecraft
& Make sure you are not using a modified client!
If you are a beginner at codding please follow all the steps, if you know what you are doing and you just want to learn the codes, please decompile your client and skip to step: 11

1) Download and install MCP, and java ECLIPSE [Links below]

2) Make 2 folders on your desktop, one called "ECLIPSE" and the other called "MCP"

3) Extract all the files from eclipse & MCP to the specified folders that you made

4) Go into the MCP folder and run Updatemcp.bat (what this does it it checks for updates, run this whenever making mods to have the latest version of the MCP)

5) Locate your minecraft bin/resources folder and copy and paste those into the "JARS" folder in your MCP folder

6) Now, run cleanup.bat, then decompile.bat this takes a while, so go make yourself a sandwitch...and what this does is that it creates the following folders:
  • bin
  • logs
  • reobf
  • src
  • temp

You will only get a few errors, because they wanted you to put in the minecraft_server.jar, but we arent making server mods, that really doesn't matter, just ignore it!
If none of these files are generated you failed to follow the steps before, run cleanup.bat and retry, if this doesn't work I recommend that there is an update for MCP and you didn't run updatemcp.bat


7) Time to get coding! Open up eclipse and set your work-space to the works-space folder (DEFAULT)

8) Click file, then open, then navigate to
MCPFolder/src/minecraft/net/minecraft/src

9) Get to CRAFTINGMANAGER.java and open it, here is all your crafting recipes for minecraft!

10) This gibrish is called java code, it is a VERY hard languege to learn, and you can make some money off learning it, now you want to make your own crafting recipe right?

Press LCTRL + F and search for "enchantmenttable" no caps


-----------Coding Section-----------



11) you will find a file in how the enchantmenttable is made, here is what you will find:


this.addRecipe(new ItemStack(Block.enchantmentTable, 1), new Object[] {" B ", "D#D", "###", '#', Block.obsidian, 'B', Item.book, 'D', Item.diamond});

(Execpt that all of this is on one line! It just wouldn't fit in this text box)

Now the green colored symbols & letters if how the crafting recipe is made up of, and the spaces mean air, nothing is there, So... it would be set up like this:
B

D#D

###

King of like in minecraft if you ever made one before And the blue colored symbols & text is what each symbol means, so they mean...
# = Obsidian (Block.obsidian)
B = Book (Item.book)
D = Diamond (Item.diamond)
According to the code line.

And where it says Block.enchantmenttable, 1
The Block.enchantmenttable is what you get when the recipe is made, and
the 1 is how many you recieve

So the question is how can I make a new one? You can make a new one by copying the code (Inside of Eclipse) click at the end of the code, and press space to go down a line, paste in the code again and edit it

Say you wish to make a crafting recipe to make grass like the picture below, so these are what the recipe is going to be like:
S

D

S = Seeds (Item.seeds)
D = Dirt (Block.dirt)

Now put the puzzle together, and you should come up with this:

this.addRecipe(new ItemStack(Block.grass, 1), new Object[] {" S ", " D ", 'S', Item.seeds, 'D', Block.dirt});

----End of coding Section---

12) Now that you are done coding you want to go back into the MCP folder and run recompile.bat

13) Now run reobfuscate.bat, what this does is that it generates a class file for you to drag and drop into your minecraft.jar, the file(s) appear in the reobf folder at the top part
It should say, that it found changes in your craftingmanager.bat
Errors? You failed to follow directions correctly, run cleanup.bat, and retry from top

14) Get the files from your reobf folder, and drag them into your minecraft.jar using winrar REMEMBER TO DELETE THE META-INF


15) YOUR DONE YAY! o §o o ¡o o ¦ Now open up minecraft, and you should get this:
ksGprjpg

Download Java's Eclipse Here (Use Eclipse Classic)

Download MCP (Minecraft Coder's Pack 1.3.2) Here

Help me out by:
Diamonding
Subscribing
Commenting



Click to reveal
Thanks for over 75 diamond, and 100+ comments (:


Thanks for all the support guys, If you need help, or if you are having problems, comment your problem, and I will get back to you when I can!
------------------------------------------------------------------------
POSTING A CRAFTING RECIPE MOD ON PLANETMINECRAFT IS ILLEGEL!, DON'T DO IT OR IT WILL BE TAKEN DOWN, I ONLY MADE THIS POST TO TEACH THE BASICS!
Tags

9 Update Logs

Update #9 : by XCRAFTERS 08/20/2012 3:01:54 pmAug 20th, 2012

updated full thread to 1.3.2 Enjoy!
LOAD MORE LOGS

Create an account or sign in to comment.

AwSoMexD
11/19/2012 1:20 pm
Level 31 : Artisan Modder
AwSoMexD's Avatar
How thit you make that crafting box.
1
TeamPyro
10/27/2012 8:35 pm
Level 8 : Apprentice Architect
TeamPyro's Avatar
Illegel? It's illegal.
1
XCRAFTERS
11/02/2012 12:47 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS's Avatar
???
The Capitalized i looks like a lowercase L

Il ???
1
CracklePopBoom
10/17/2012 2:24 pm
Level 21 : Expert Pony
CracklePopBoom's Avatar
if want to upload my crafting manager as a mod how could i do that?
becuase mine is called easy dimaond and all you need is 2 obsidian and 1 lazuli block
1
FRISBO
09/25/2012 7:19 pm
Level 1 : New Explorer
FRISBO's Avatar
when i open the src file its empty!
1
XCRAFTERS
09/26/2012 7:47 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS's Avatar
Run cleanup.bat
Then run decompile.bat

Then there will be
1
FRISBO
09/26/2012 6:35 pm
Level 1 : New Explorer
FRISBO's Avatar
i did! Multiple times!
1
XCRAFTERS
09/27/2012 6:17 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS's Avatar
Remeber this is windows 7 tut make sure its that... run cleanup.bat then restart the tut from the top READING THE RED PRINT
1
FRISBO
09/27/2012 6:51 pm
Level 1 : New Explorer
FRISBO's Avatar
yes im using windows 7 i ran cleanup.bat and i followed the instructions perfectly!
1
tjs234
08/29/2012 6:28 am
Level 17 : Journeyman Modder
tjs234's Avatar
Whats the code for sticks?
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome