How To Make A Minecraft Mod (no.1 [adding a new crafting recipe])
8 diamonds
-
2,904Views, 7 today
- Comments
- Favorites
- Flag / Report
Get Embed Code
Level 52 : Grandmaster Programmer
Posted 04/22/12 5:35:29 pm , last updated: 10/10/12 5:42:31 pm
04/22/12
- java JDK
- modloader
- eclipse (recommended[get the CLASSIC version]) or Notepad++
- MCP (minecraft coder pack)
- location of .minecraft folder (you can type %appdata% in run to locate it)
- 7zip (recommended) or WinRar (use if you cant find 7zip or it doesn't work)

if you already set up MCP then skip to step #13 and run eclipse
- download required files (if you have already done that skip to step #2)
make sure you download the current file. for eclipse, get the classic version - extract MCP into a FOLDER on your desktop
- open the MCP folder
- open jars folder
- open you .minecraft folder (on windows click start, accessories, run, type in %appdata%)
- copy bin and resource folders into jar folder (in MCP)
- open the bin folder (the one that's in the MCP)( also you can close out your .minecraft folder)
- right click on minecraft.jar and (if your using 7zip, click open archive)
- right click on your ModLoader.zip and do the same as in step #8 and open archive
- drag everything from the ModLoader.zip into your minecraft.jar (DO NOT DELETE META-INF!!!!!)
- close minecraft.jar and modloader.zip + in the root of the MCP folder run decompile.bat
- during the decompile process you should get an error that has Render in it, that's ok. if you did not get that you did somthing wrong.
- once it finishes run your eclipse.exe and select your workspace as the eclipse folder in the root of your MCP
- once its loaded on your eclipse client, open the client folder in the package explorer, then open the src, then
net.minecraft.src, then right click net.minecraft.src and select New -> Class - base mod names must be named with mod_ (e.x. mod_MyNewMod )
- add abstract right after public so you get public abstract class mod_MyNewMod and add extends BaseMod after your mod name.
- then add this inside of the brackets (everything goes inside those brackets you see when you make a new class):public mod_MyNewMod(){}public void load(){}public String getVersion(){return "MyNewMod 1.2.5";}
- in the public void load() add this:
ModLoader.addRecipe(new ItemStack(Block.sponge, 1), new Object[]
{
"XXX", "TBT", "XXX", 'X', Block.sand, 'T', Item.clay, 'B', Item.bucketEmpty
});
the " 1 " after block.sponge is how many you get out of crafting
the "XXX" is the top row, the "TBT" is the middle row, and the last one is the last row
the 'X', Block.sand tells what the X means in the crafting recipe (same thing for the others) - save your class file and go back to your MCP folder
- run recompile.bat (if you get an error you did something wrong)
- if you get no errors then run startclient.bat
- test out your new crafting recipe
- on MCP click the conf folder
- open the client.txt
- delete EVERYTHING there
- save the file
- in the root of MCP run Rebustfocate
- after it is done your mod files will be in the rebof folder
- Guess what? Your done with your first mod! Congrats!
Additional Details
| Tags: | Hot, Cool, Popular, New, Modding, Mods, Mod, Help Tutorial, How, Make, Fun, Article, Tutorial |
Update #3 : 10/10/2012 5:42:31 pm10/10/12
Update #2 : 06/17/2012 2:02:34 pm6/17/12
Sorry
Update #1 : 04/22/2012 7:34:27 pm4/22/12
Join us to post comments.
Comments : 108
123 next »
1 - 50 of 108
123 next »
1 - 50 of 108









Reply
Delete
bryce0110
Level 1
New Explorer
March 5, 2013, 3:19 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
March 6, 2013, 2:34 pm
Reply
Delete
derpy_turtle
Level 24
Expert Ninja
January 29, 2013, 5:08 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
January 29, 2013, 7:46 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 3, 2012, 11:08 pm
"Syntax error" I will post a picture of the errors as soon as I can :)
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
December 2, 2012, 1:14 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 2, 2012, 12:41 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 6:53 am
'runtimebinapplydaff.exe -p1 -u -i ....temptemp.patch -d srcminecraft' failed : 1
==ERRORS FOUND==
1 out of 1 hunk ignored -- saving rejects to file 'netminecraftsrcIntegratedSer#'
===================
!! Can not find server sources, try decompiling !!
Picture of the error:Error picture link
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
December 1, 2012, 9:46 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 3, 2012, 1:00 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
December 3, 2012, 6:10 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 3, 2012, 11:06 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 10:54 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 10:51 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
December 1, 2012, 11:37 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 2, 2012, 12:39 am
(and minecraft_server.jar)
Then I will remember it :D
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 2, 2012, 12:34 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
November 30, 2012, 8:31 am
'runtimebinapplydaff.exe -p1 -u -i ....temptemp.patch -d srcminecraft' failed : 1
==ERRORS FOUND==
1 out of 1 hunk ignored -- saving rejects to file 'netminecraftsrcIntegratedSer#'
===================
Can you say what's the error is now? I think it has something to do with the new ''fernflower'' thing...
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
November 30, 2012, 11:44 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 6:22 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
December 1, 2012, 9:45 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 10:51 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
December 1, 2012, 2:17 am
But I didn't get that "render" error...
Reply
Delete
jonathands8
Level 1
New Miner
November 20, 2012, 3:31 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 30, 2012, 10:36 am
1 out of 1 hunk ignored''
What's wrong?
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 30, 2012, 10:56 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
November 15, 2012, 7:19 am
That was the error
Reply
Delete
jonathands8
Level 1
New Miner
November 20, 2012, 4:36 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
November 20, 2012, 10:11 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 31, 2012, 12:00 am
Reply
Delete
fragmen52
Level 31
Artisan Modder
October 30, 2012, 6:33 am
I cant open src :(
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 30, 2012, 10:56 am
Reply
Delete
fragmen52
Level 31
Artisan Modder
October 30, 2012, 1:38 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 30, 2012, 3:10 pm
try going there
Reply
Delete
fragmen52
Level 31
Artisan Modder
October 30, 2012, 5:37 pm
in eclipse after client u cant click src(it wont open). when I do decompile.bat only like 15 lines come up is that bad?
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 30, 2012, 5:39 pm
Reply
Delete
fragmen52
Level 31
Artisan Modder
October 30, 2012, 5:51 pm
Reply
Delete
fragmen52
Level 31
Artisan Modder
November 1, 2012, 6:54 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 25, 2012, 5:12 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 25, 2012, 12:29 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 26, 2012, 4:07 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 26, 2012, 12:34 pm
now just to wait for modloader, also i can now start making new mods because i got my new computer!
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 26, 2012, 10:19 pm
(I got it for like 2-3 months ago)
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 30, 2012, 10:56 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 31, 2012, 12:01 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 8, 2012, 5:22 am
It stands ''.MINCRAFT'' instead of ''.MINECRAFT''. If you are new to minecraft(or new to mods and so) you would not understand what that folder is.
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 9, 2012, 1:47 pm
second i have not had one person complain about not finding it
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 10, 2012, 4:49 am
''how to make a mincraft mod''
and
''location of .mincraft folder (you can type %appdata% in run to locate it)''
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 10, 2012, 1:42 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 11, 2012, 3:40 am
...I guess that it is something wrong on my screen on my computer OR it is my annoying antivirus program :(
Sometimes it hides things that isn't viruses.... :(
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 11, 2012, 6:02 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
October 11, 2012, 11:54 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 12, 2012, 5:58 am
Ich bin 11 jahre alt.
Did you get it? It's deutsch, but I'm not from Germany I'm just learning it...
Reply
Delete
beboy57
Level 1
New Crafter
October 1, 2012, 3:07 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 8, 2012, 5:23 am
Reply
Delete
henry2242
Level 1
New Miner
August 31, 2012, 2:04 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
September 2, 2012, 7:22 am
Reply
Delete
henry2242
Level 1
New Miner
September 2, 2012, 5:26 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
September 2, 2012, 5:48 pm
Reply
Delete
henry2242
Level 1
New Miner
September 2, 2012, 8:02 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
August 19, 2012, 6:53 am
Instead I got a another error and it runned recompile.bat.
Before I set up mcp I even clicked force update so if I had any mods they would be deleted.
What should I do now? Set it up again..?
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
August 21, 2012, 7:47 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
August 22, 2012, 6:50 am
It is possible to see all the errors somewhere, right?
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
August 22, 2012, 11:56 am
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
August 22, 2012, 8:33 pm
Reply
Delete
NewSuperMario
Level 17
Journeyman Dragonborn
October 30, 2012, 10:24 am
Reply
Delete
luke_chaos
Level 13
Journeyman Creeper Hugger
July 18, 2012, 9:48 am
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
August 21, 2012, 7:48 pm
Reply
Delete
jordanpyke
Level 35
Artisan Dwarf
July 11, 2012, 3:38 pm
Reply
Delete
fox_news
Level 52
Grandmaster Programmer
August 21, 2012, 7:48 pm