Minecraft Blogs / Tutorial

Mod Making Tutorials for Beginners!

  • 986 views, 2 today
  • 5
  • 2
  • 5
DingoDino19's Avatar DingoDino19
Level 21 : Expert Dragonborn
7
Have you ever wanted to make your own mod?

Well now you can!!

Please Like,Comment, and Subscribe to my channel and Youtube Channel!!!


I'm going to be updating this blog with different tutorials!

Tutorial 1- Setting up MCP w/ ModLoader

Follow the instructions of this video:




Tutorial 2-Making Your First Block w/ ModLoader
Follow the instructions, and the coding will be below if you want to copy it, but it is better to learn:



In the mod_NameHere.java File:


// Made by Dingo Dino 2/12/13 //




package net.minecraft.src;




public class mod_Name extends BaseMod


{


public mod_Name()


{


ModLoader.addName( Name,"Tutorial Block");


ModLoader.registerBlock( Name );


}





public void load()


{





}





public String getVersion()


{


return ("1.4.7");


}





public static final Block Name;





static


{


Name = new BlockName(255, 0).setHardness(3.0F).setResistance(5.0F).setBlockName("Name");


}








}


In the BlockNew.java






package net.minecraft.src;




public class BlockName extends Block


{


public BlockName(int par1, int par2 )


{


super(par1, par2, Material.cloth);


this.setCreativeTab(CreativeTabs.tabBlock);


}


}


Remember that the "BlockName" are changed to whatever your java file is called.
Same with the mod_NameHere.
If you don't understand this you must watch the video!!!

Tutorial 3 - Customizing Your Block

Watch this video!:



The Coding for this Tutorial:

In mod_Name


package net.minecraft.src;




public class mod_Name extends BaseMod


{


public mod_Name()


{


ModLoader.addName( Crystal,"Crystal");


ModLoader.registerBlock( Crystal );


Crystal.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/Crystal.png");


}





public void load()


{





}





public String getVersion()


{


return ("1.4.7");


}





public static final Block Crystal;





static


{


Crystal = new BlockName(255, 0).setLightValue(1.0F).setHardness(40.0F).setResistance(10.0F).setBlockName("Crystal");


}








}


Where I have put Crystal.png, you want to put the name of the png of the texture you made. When installing, you must put this into your mine craft.jar( the custom texture.png ).

In BlockName.java






package net.minecraft.src;


import java.util.Random;




public class BlockName extends Block


{


public BlockName(int par1, int par2 )


{


super(par1, par2, Material.cloth);


this.setCreativeTab(CreativeTabs.tabBlock);


}





public int idDropped(int par1, Random par2Random, int par3)


{


return Item.fireballCharge.itemID;


}





public int quantityDropped(int par1)


{


return (1);


}


}

Where I have put fireballcharge you can put whatever item you want. When you type in Item., a gui will pop up giving you the options of the items you can use. Where I have return (1); you can change that 1 to however many of that item you want the block to drop.
Tags

Create an account or sign in to comment.

1
02/26/2013 12:19 am
Level 21 : Expert Dragonborn
DingoDino19
DingoDino19's Avatar
haha thanks I reallly do try
1
02/25/2013 8:24 pm
Level 1 : New Miner
cmine0570
cmine0570's Avatar
THIS NEEDS TO BE MORE POPULAR SO HELPFUL
1
02/25/2013 12:56 am
Level 1 : New Miner
minec102
minec102's Avatar
Helped soo much
1
02/25/2013 12:55 am
Level 1 : New Miner
minec102
minec102's Avatar
Awesome should be more popular
1
03/02/2013 7:18 pm
Level 21 : Expert Artist
Daisy Rose
Daisy Rose's Avatar
Minec102 is right. ^
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome