- 7,854 views, 0 today
- 9
- 8
- 108
208
how to make a minecraft mod
no.1
adding a new crafting recipe
click on support page if you have any errors or you need help with the tuorial:
SUPPORT PAGE
required:
in this tutorial i will show you how to make a new crafting recipe!
please follow the steps in ORDER or this will make no sense!
to day i am going to show you how to make this crafting recipe:
if you already set up MCP then skip to step #13 and run eclipse
no.1
adding a new crafting recipe
click on support page if you have any errors or you need help with the tuorial:
SUPPORT PAGE
required:
- 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)
in this tutorial i will show you how to make a new crafting recipe!
please follow the steps in ORDER or this will make no sense!
to day i am going to show you how to make this crafting recipe:
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!
Tags |
3 Update Logs
Update #3 : by fox_news 10/10/2012 5:42:31 pmOct 10th, 2012
fixed some spelling errors
LOAD MORE LOGS
810102
6
Create an account or sign in to comment.
"Syntax error" I will post a picture of the errors as soon as I can :)
Error:
'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