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:
// 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");
}
}
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:
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 ).
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.
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 |
tools/tracking
1903762
6
mod-making
Create an account or sign in to comment.