А на какой строке по счетуДобавлено (05.02.2012, 19:19)
---------------------------------------------
Code
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");
}
}
Это код mod_gcc
Code
package net.minecraft.src;
import java.util.Random;
public class BlockNew extends Block
{
public BlockNew(int i, int j)
{
super(i, j, Material.ground);
}
public int idDropped(int i, int j)
{
return mod_gcc.newblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
А это Blocknew