3.Extract the Mcp Zip file into a folder of your choice
4.Copy the bin and resources folder from .minecraft into the jars folfer within your mcp directory.
5.run the decompile.bat if using windows or open terminal if on mac and navigate to your mcp drectory in terminal then type bash and drag in the decompile.sh.
6.open eclipse and set the directory to your eclipse folder within your MCP folder then click ok.
7. you should now have two directorys in eclipse, 1 called client and 1 called server, you should also have 2 errors this is because we are not modding the server so just ignore them also ignore warnings for now, that is it you can now start modding.
Tutorial 2 Setting Up ModLoader :
1.Download Risugami's ModLoaderyou wil need the older 1.7.3 version until Mcp is updated!!
2. add the files to the minecraft.jar but do not delete meta-inf.
3. now follow step 4 on the Setting up MCP tutorial!!
Thats it now your mods can work and be compatible with others :tongue.gif:
1.start by creating a new class and call it mod_yourchoice, put whatever you want for 'yourchoice'.
2.add the following to your new class :
package net.minecraft.src;
public class mod_yourchoice extends BaseMod
"package net.minecraft.src;" this is saying that it should read classes and such from the main minecraft directory
"public class mod_yourchoice extends BaseMod" this is saying that your class should extend risugamis file BaseMod!
3.now add this after the code you just wrote :
{
public mod_yourchoice()
{
}
public String Version()
{
return "1.7.3";
}
}
"public mod_yourchoice()
{
}" this is where you will add ModLoader commands in other tutorials
"public String Version()
{
return "1.7.3";
} " this is what ModLoader will display when loading your mod in logs etc so the "1.7.3" can be what ever you want!
so the whole class should look like this :
package net.minecraft.src;
public class mod_yourchoice extends BaseMod
{
public mod_yourchoice()
{
}
public String Version()
{
return "1.7.3";
}
}
I hope this Helped feedback is useful and feel free to suggest tutorials!!
1.In your mod_yourchoice file type the following below this line - public class mod_yourchoice extends BaseMod
{
public static yourchoice final Block = new Blockyourchoice(150, 0).setBlockName("yourchoice").setLightValue(1.0f).setStepSound(Block.stepSoundWool);
"public static final Block" this defines the block
"150" this is the ingame id
"0" this is the texture
".setBlockName("yourchoice")" this sets the name
".setLightValue(1.0f)" this is optional it makes it glow like glowstone "(1.0f)" is the brightness
".setStepSound(Block.stepSoundWool)" this sets the noise it makes when stepped on and destroyed!
2.next type the following under this line - public mod_yourchoice() {
public static final yourchoice Item = new Item(2000).setItemName("yourchoice");
to :
public static final yourchoice Item = new ItemFood(2000, 5).setItemName("yourchoice");
"(2000, 5)" the 2000 is the ingame id and the 5 is the amount of half hearts it will heal if your change it to -5 it will decrease 5 half hearts, the maximum is 20.
i hope this tutorial helped please leave feedback and reqest tutorials
Welcome to HowNot2Plays Written Tutorials, Suggestions are Welcome.
if you have an error either pm me your code and error on youtube or reply to this thread with your code in a code snippet!!
Key :
Not Started
In Progress
Complete
Tutorials so far :
Setting up MCP
Seting up Modloader
Setting up a new ModLoader Mod
Making a new Block
Making a new Item
Making new Food
Tutorial 1 Setting Up MCP :
1.Download Eclipse or a similiar java editing software.
2.Download the Latest version of MCP.
3.Extract the Mcp Zip file into a folder of your choice
4.Copy the bin and resources folder from .minecraft into the jars folfer within your mcp directory.
5.run the decompile.bat if using windows or open terminal if on mac and navigate to your mcp drectory in terminal then type bash and drag in the decompile.sh.
6.open eclipse and set the directory to your eclipse folder within your MCP folder then click ok.
7. you should now have two directorys in eclipse, 1 called client and 1 called server, you should also have 2 errors this is because we are not modding the server so just ignore them also ignore warnings for now, that is it you can now start modding.
the first tutorial is up i called them written tutorials because i already have video tutorials up on the forum!
the first tutorial is up i called them written tutorials because i already have video tutorials up on the forum!
Tutorial 2 Setting Up ModLoader :
1.Download Risugami's ModLoaderyou wil need the older 1.7.3 version until Mcp is updated!!
2. add the files to the minecraft.jar but do not delete meta-inf.
3. now follow step 4 on the Setting up MCP tutorial!!
Thats it now your mods can work and be compatible with others :tongue.gif:
Tutorial 3 Setting Up a mod_File with ModLoader :
1.start by creating a new class and call it mod_yourchoice, put whatever you want for 'yourchoice'.
2.add the following to your new class :
"package net.minecraft.src;" this is saying that it should read classes and such from the main minecraft directory
"public class mod_yourchoice extends BaseMod" this is saying that your class should extend risugamis file BaseMod!
3.now add this after the code you just wrote :
"public mod_yourchoice()
{
}" this is where you will add ModLoader commands in other tutorials
"public String Version()
{
return "1.7.3";
} " this is what ModLoader will display when loading your mod in logs etc so the "1.7.3" can be what ever you want!
so the whole class should look like this :
I hope this Helped feedback is useful and feel free to suggest tutorials!!
Tutorial 4 Creating a new Block :
1.In your mod_yourchoice file type the following below this line - public class mod_yourchoice extends BaseMod
{
"public static final Block" this defines the block
"150" this is the ingame id
"0" this is the texture
".setBlockName("yourchoice")" this sets the name
".setLightValue(1.0f)" this is optional it makes it glow like glowstone "(1.0f)" is the brightness
".setStepSound(Block.stepSoundWool)" this sets the noise it makes when stepped on and destroyed!
2.next type the following under this line - public mod_yourchoice() {
"ModLoader.RegisterBlock(yourchoice);" this makes your block visible in tmi etc.
"ModLoader.AddName(yourchoice, "yourchoice");" this adds the ingame name
"yourchoice.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/yourfolder/yourtexture.png");" this gives your block a texture.
That is it youve made your first block, i hope this tutorial helped please leave your feedback below and take part in the poll above!
Tutorial 5 Creating a new Item :
1.under public class mod_yourchoice extends BaseMod { in your mod_yourchoice class type the following
2.under public mod_yourchoice() { in your mod_yourchoice class type the following :
"ModLoader.AddName(yourchoice, "yourchoice");" this will set the ingame name for your item.
"yourchoice.iconIndex = ModLoader.addOverride("/gui/items.png", "/yourfolder/yourtexture.png");" this will set your items texture.
I hope this tutorial helped feel free to suggest new tutorials :biggrin.gif:
Tutorial 6 Creating a new Food :
1. follow my item tutorial but change this line :
to :
"(2000, 5)" the 2000 is the ingame id and the 5 is the amount of half hearts it will heal if your change it to -5 it will decrease 5 half hearts, the maximum is 20.
i hope this tutorial helped please leave feedback and reqest tutorials