Hello I am seatooth and if you are viewing this thread you most likely want to learn how to make mods I will being mod tuts about mob making and other stuff. First we are going to start with a recipe tutorial.If you are making a cool mod or made one with this tutorial pm me because it's always good to know who I helped get onto the trail of making minecraft mods. Also you can advertise the first mod you made with this tutorial here to e.g. Hi I am bobbyjoe with the help of this tutorial I made a guy with a moustache mod. thanks seatooth for the tutorial.
Requirements:
-MCP
What would be good:
-At least basic java knowledge
-Notepad ++
-Snacks
-Possibly a stress ball
Donate Donate
Donate because money motivates :smile.gif:
Recipes Tutorial
1. Setting up MCP
First you will need to download MCP And extract MCP into a folder on your desktop. If the link says 1.6.5 download it for 1.6.6 since 1.6.5 mods work on 1.6.6 . Drag a the bin and resource folder from the .minecraft folder and put a minecraft server.jar in the jars folder in MCP. You should have the java path set up if not click this link to know how Setting up a java pathonce your java path setup click update MCP to make sure it's up to date
Then click decompile it wait for it to finish.
2. Making the recipe
In the MCP Go into src then minecraft then net then minecraft then source. You should be in Desktop\MCP\src\minecraft\net\minecraft. You should see all these java files go into search then search CraftingManager and open it with a text editor. You should see the code when you scroll down the first recipe you should see is the
addRecipe(new ItemStack(Item.paper, 3), new Object[] {
"###", Character.valueOf('#'), Item.reed
});
We are going to change this so that we get diamond from dirt we are going to delete two of the three #'s and the Item.Reed to Block.dirt And the Item.Paper to Item.diamond and you can change the number after the new Item.diamond to from 1-64. The code should now look like this
addRecipe(new ItemStack(Item.diamond, 3), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
Double check your code so it looks the same as my code and save the file.
3. Testing
Now go back to the MCP folder and run recompile and when it's recompiled then run startclient.
Go collect dirt and craft it you should get three diamond. Now that you know how to add recipes you could and make more recipes.
4. Getting the Mod ready for installing
Now run reobfuscate and click reobf the click minecraft and CraftingManager should be there and you can just put it on the a download site and put it on the forum. now that you have a first mod but you should most likely not put it on the forum because you will just get flamed by flamers. well this is the recipes tutorial there will be more tutorials to come.
Blocks
If you haven't done the recipes tutorial you should do it now. This tutorial will show you how to make a block that is just a normal block with no specials like dirt or cobble stone.
1. Making the block
Search for the BlockDirt and copy it and rename it to BlockTest.
The code should look like this
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class BlockDirt extends Block
{
protected BlockDirt(int i, int j)
{
super(i, j, Material.ground);
}
}
change the BlockDirt to BlockTest because where it says BlockDirt should always be the file name. You can change the Material.ground to whatever material you want. The code should look like this
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class BlockTest extends Block
{
protected BlockTest(int i, int j)
{
super(i, j, Material.ground);
}
}
2.Adding the block's properties
now that we have the block we have to go into the file called Block. Click go to and type 581 for the line number. You should see a bunch of lines that say public state final go down a little bit and find
public static final Block dirt;
and copy it and paste it right under the public state final block dirt and replace dirt with test so it looks like:
public static final Block test;
. Now go to line number 727 and copy the code that says
dirt = (new BlockDirt(3, 2)).setHardness(0.5F).setStepSound(soundGravelFootstep).setBlockName("dirt");
replace where it says dirt with test and where it says (99,106) so the code should look like this:
test = (new BlockTest(99, 106)).setHardness(0.5F).setStepSound(soundGravelFootstep).setBlockName("test");
3.Adding the block to the game
now go into Crafting Manager and make a recipe that looks like this:
addRecipe(new ItemStack(Block.test, 1), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
So now recompile the code and you can click startclient to test and reobfuscate to get it ready for sharing.
Optional 1. World gen
Go into ChunkProviderGenerate and paste this code on line 701:
for(int i3 = 0; i3 < 20; i3++)
{
int j6 = k + rand.nextInt(16);
int k9 = rand.nextInt(128);
int j12 = l + rand.nextInt(16);
(new WorldGenMinable(Block.test.blockID, 16)).generate(worldObj, rand, j6, k9, j12);
}
This should work but I didn't test it.
Making Mobs
1. Making the golem
This will make a golem that drops the test block that we made so if you didn't make the block do it now. You will need this image and put it into your MCP folder's temp\bin\minecraft\mob folder and now to start modding. copy EntityZombie and paste it and rename it EntityGolem the code should look like this:
Change EntityZombie To EntityGolem and for texture insteadof zombie.png make it testgolem.png and public on living update and the stuff in it and chang Item.feather.shiftedIndex to Block.test.blockID so that the code looks like this
Now recompile and test it and it should work.
Optional 1. Making work with modloader Make a file called mod_golem for this file to work you would needed to have modloader in your minecraft.jar before decompiling for it to recompile the contents of mod_golem would be this:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
import java.util.Map;
// Referenced classes of package net.minecraft.src:
// BaseMod, EnitiyGolem, ModelGolem, ModLoader,
// EnumCreatureType
public class mod_Golem extends BaseMod
{
public String Version()
{
return "version 0.1 for Beta v1.6_6";
}
public mod_Golems()
{
ModLoader.RegisterEntityID(net.minecraft.src.EntityTestGolem.class, "TestGolem", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(net.minecraft.src.EntityTestGolem.class, 10, EnumCreatureType.monster);
}
public void AddRenderer(Map map)
{
map.put(net.minecraft.src.EntityTestGolem.class, new RenderBiped(new ModelTestGolem(), 1.5F));
}
}
and then it would work for modloader
Making Items and Furnace Recipes
I suggest that you have the block mod done if you didn't because it is required. We will be making a ingot kind of Item which you smelt the test block to get it. You will need this file and put it into temp\bin\gui
1.Making The Ingot
Go into the item java file and go to line 227 copy this code
public static Item ingotIron = (new Item(9)).setIconCoord(7, 1).setItemName("ingotIron");
copy it and paste it under the the iron ingot code. Change the name from ingotIron to ingotTest change the (9)) to (105)) and the from (7,1) to (14,2) and the ("ingotIron") to ("ingot Test so it looks like this
public static Item ingotTest = (new Item(105)).setIconCoord(14, 2).setItemName("ingotTest");
2.Making it the block smeltable
Open FurnaceRecipes and go to line 24 and copy this code
addSmelting(Block.oreIron.blockID, new ItemStack(Item.ingotIron));
Change oreIron to test and ingotIron to ingotTest. Now recompile and test and it should work we will use this ingot to make armour and tools.
Rollback Post to RevisionRollBack
I Play games, and program in Python, If you need help send me a message!
If anyone needs a tutorial for something if have the time I will make it.
Tool making tut or Ore making?
(maybe a combo since ore=supplies for tools lol)
Btw on the monster how would you create say a "baby creeper" would that involve any programm
for modeling then just make the entity uhhh Cow? with that model and a Nuet. lil creeper would be running aronud?
Im a little confused on how to set a java path?(i got it!) maybe making new items tut? or press a button to open up a menu?
Can i make mob skins like for a zombie with skinedit?
new items?
smelting recipe?
ok so i am making a custom amour mod i am going to have obsidian,wood and stone amour i know how to make an item,make a crafting recipe and a smelting recipe but do not understand how to give my amour properties like how much durability and damg it can take... can you make a tut showing that? thanks for reading
ok so i am making a custom amour mod i am going to have obsidian,wood and stone amour i know how to make an item,make a crafting recipe and a smelting recipe but do not understand how to give my amour properties like how much durability and damg it can take... can you make a tut showing that? thanks for reading
I will be making item, armour, and tool tutorials so just wait and they will come.
Rollback Post to RevisionRollBack
I Play games, and program in Python, If you need help send me a message!
The tool tutorial will be made late sunday because my mom's annoying boyfriend is playing with the power and turning it of and on without telling anyone so I am to annoyed to do some tuts for a while plus I will be at my dad's.
Rollback Post to RevisionRollBack
I Play games, and program in Python, If you need help send me a message!
The tool tutorial will be made late sunday because my mom's annoying boyfriend is playing with the power and turning it of and on without telling anyone so I am to annoyed to do some tuts for a while plus I will be at my dad's.
tell him to stop or i will find him and beat him so har he will never turn any thing on or off again.
hey help! i did as you said on the furnace recipes but my smelted items doesn't appear as the icons on the items.png D: PLZ help me! i can't afford to give you a diamond but I can give you this
thanks for the help! but how can i READ and choose the block coord on the terrain, like say i want to make a texture like the sapling next to the brown mushroom, how would i read the coord and put it in the code? oh and i guess i owe you this
On the terrain picture you can see that stone is the second block, then dirt, then grass, then planks etc. so |stone = 2|dirt = 3|grass = 4|planks = 5| etc. hope i helped :laugh.gif:
Requirements:
-MCP
What would be good:
-At least basic java knowledge
-Notepad ++
-Snacks
-Possibly a stress ball
Donate
Donate
Donate because money motivates :smile.gif:
Recipes Tutorial
1. Setting up MCP
First you will need to download MCP And extract MCP into a folder on your desktop. If the link says 1.6.5 download it for 1.6.6 since 1.6.5 mods work on 1.6.6 . Drag a the bin and resource folder from the .minecraft folder and put a minecraft server.jar in the jars folder in MCP. You should have the java path set up if not click this link to know how Setting up a java pathonce your java path setup click update MCP to make sure it's up to date
Then click decompile it wait for it to finish.
2. Making the recipe
In the MCP Go into src then minecraft then net then minecraft then source. You should be in Desktop\MCP\src\minecraft\net\minecraft. You should see all these java files go into search then search CraftingManager and open it with a text editor. You should see the code when you scroll down the first recipe you should see is the We are going to change this so that we get diamond from dirt we are going to delete two of the three #'s and the Item.Reed to Block.dirt And the Item.Paper to Item.diamond and you can change the number after the new Item.diamond to from 1-64. The code should now look like this Double check your code so it looks the same as my code and save the file.
3. Testing
Now go back to the MCP folder and run recompile and when it's recompiled then run startclient.
Go collect dirt and craft it you should get three diamond. Now that you know how to add recipes you could and make more recipes.
4. Getting the Mod ready for installing
Now run reobfuscate and click reobf the click minecraft and CraftingManager should be there and you can just put it on the a download site and put it on the forum. now that you have a first mod but you should most likely not put it on the forum because you will just get flamed by flamers. well this is the recipes tutorial there will be more tutorials to come.
Blocks
If you haven't done the recipes tutorial you should do it now. This tutorial will show you how to make a block that is just a normal block with no specials like dirt or cobble stone.
1. Making the block
Search for the BlockDirt and copy it and rename it to BlockTest.
The code should look like this
change the BlockDirt to BlockTest because where it says BlockDirt should always be the file name. You can change the Material.ground to whatever material you want. The code should look like this
2.Adding the block's properties
now that we have the block we have to go into the file called Block. Click go to and type 581 for the line number. You should see a bunch of lines that say public state final go down a little bit and find and copy it and paste it right under the public state final block dirt and replace dirt with test so it looks like: . Now go to line number 727 and copy the code that says replace where it says dirt with test and where it says (99,106) so the code should look like this:
3.Adding the block to the game
now go into Crafting Manager and make a recipe that looks like this: So now recompile the code and you can click startclient to test and reobfuscate to get it ready for sharing.
Optional 1. World gen
Go into ChunkProviderGenerate and paste this code on line 701: This should work but I didn't test it.
Making Mobs
1. Making the golem
This will make a golem that drops the test block that we made so if you didn't make the block do it now. You will need this image and put it into your MCP folder's temp\bin\minecraft\mob folder and now to start modding. copy EntityZombie and paste it and rename it EntityGolem the code should look like this:
Change EntityZombie To EntityGolem and for texture insteadof zombie.png make it testgolem.png and public on living update and the stuff in it and chang Item.feather.shiftedIndex to Block.test.blockID so that the code looks like this
2.Making the golem model
now go to model copy and paste it and rename it to ModelGolem the code should look like this: Change ModelZombie To ModelGolem so the code should look like this:
3.Spawning the golem
Go to biome gen base and go to BiomeGenBase and go to line 22 the code should look like this: Add golem after slime and it should look like this: Now recompile and test it and it should work.
Optional 1. Making work with modloader Make a file called mod_golem for this file to work you would needed to have modloader in your minecraft.jar before decompiling for it to recompile the contents of mod_golem would be this: and then it would work for modloader
Making Items and Furnace Recipes
I suggest that you have the block mod done if you didn't because it is required. We will be making a ingot kind of Item which you smelt the test block to get it. You will need this file and put it into temp\bin\gui
1.Making The Ingot
Go into the item java file and go to line 227 copy this code copy it and paste it under the the iron ingot code. Change the name from ingotIron to ingotTest change the (9)) to (105)) and the from (7,1) to (14,2) and the ("ingotIron") to ("ingot Test so it looks like this
2.Making it the block smeltable
Open FurnaceRecipes and go to line 24 and copy this code Change oreIron to test and ingotIron to ingotTest. Now recompile and test and it should work we will use this ingot to make armour and tools.
For this epic tut:D
I am making a mob tut tommorrow or later today so just wait and you will find what you are looking for.
Thank you i can finnally add penguins/cats/whatever mob i think of once this is made lol ill give ya Credz when i make mobs
Tool making tut or Ore making?
(maybe a combo since ore=supplies for tools lol)
Btw on the monster how would you create say a "baby creeper" would that involve any programm
for modeling then just make the entity uhhh Cow? with that model and a Nuet. lil creeper would be running aronud?
Im a little confused on how to set a java path?(i got it!) maybe making new items tut? or press a button to open up a menu?Can i make mob skins like for a zombie with skinedit?
new items?
smelting recipe?
Haters gunna hate. Builders gunna create.
I will be making item, armour, and tool tutorials so just wait and they will come.
thanks cant wait untill then i prefect my block and item makeing :smile.gif:
tell him to stop or i will find him and beat him so har he will never turn any thing on or off again.
On the terrain picture you can see that stone is the second block, then dirt, then grass, then planks etc. so |stone = 2|dirt = 3|grass = 4|planks = 5| etc. hope i helped :laugh.gif:
Can you help with this at all? I followed this tutorial, and it worked almost perfectly.