package net.minecraft.src;
public class mod_gcc extends BaseMod
{
public static Block newblock = new BlockNew(101, 0).setHardness(0.5F).setResistance(1.0F).setBlockName("newblock");
public String Version()
{
return "1.7_03";
}
public mod_gcc()
{
ModLoader.RegisterBlock(newblock);
ModLoader.AddName(newblock, "GCC");
ModLoader.AddRecipe(new ItemStack(newblock, 1), new Object[]{ "##", "##", Character.valueOf('#'), Block.dirt});
newblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/java.png");
}
}
package net.minecraft.src;
import java.util.Random;
public class BlockNew extends Block
{
public BlockNew(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, int j)
{
return mod_gcc.newblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Может там проблема...
![](/img/smilies/icon_sad.gif)