Step-by-step:
You should replace all *'s With what you want. All 'Name' need to stay the same as the first one
1. Your code should look like this:
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
import net.minecraft.client.Minecraft;
import java.util.List;
public class mod_**** extends BaseMod
public void load()
{
{
public String getVersion()
{
return "1.2.5";
}
If not, change it.
2. Write above public void load:
public static final Block Name = new Name (160, 0).setBlockName("Name").setHardness(**F).setResist ance(**F);
3. Between public void load()'s {} Write:
ModLoader.registerBlock(Name);
Name.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/imagefolder/image.png");
ModLoader.addName(Name, "In-game name");
4. Create a new class with name as your Name (Above)
5. In that class, write:
package net.minecraft.src;
import java.util.Random;
public class Name extends Block
{
public Name (int i, int j)
{
super(i , j, Material.rock);
}
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped (int i, Random random, int j)
{
return mod_****.Name.blockID;
}
}
6. Your done.