Лог:
BlockAmetistR.java:Code
package net.minecraft.src;
import java.util.Random;
public class BlockAmetistR extends Block
{
protected BlockAmetistR(int par1, int par2)
{
super(par1, par2, Material.ground);
}
public int idDropped(int i, int j)
{
return mod_complex.ametistR.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
mod_complex.java:Code
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
import net.minecraft.client.Minecraft;
public class mod_complex extends BaseMod
{
public static Block ametistR = new BlockAmetistR(101, 0);
public void load()
{
}
public String Version()
{
return getVersion();
}
public String getVersion()
{
return "0.1";
}
public mod_complex()
{
ametistR.setHardness(0.5F);
ametistR.setBlockName("ametistR");
ModLoader.registerBlock(ametistR, null);
ModLoader.addName(ametistR, "en_US", "Аметистовая руда");
ModLoader.addRecipe(new ItemStack(ametistR, 1), new Object[]{ "##", "##", Character.valueOf('#'), Block.dirt});
ametistR.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/ametist.png");
}
}
Что не так?