1) Блок кремня
BlockFlint.java
package net.minecraft.src;
import java.util.Random;
public class BlockFlint extends Block
{
public BlockFlint(int par1, int par2)
{
super(par1, par2);
}
public int quantityDropped(Random par1Random)
{
return 1;
}
public int idDropped(int par1, Random par2Random, int par3)
{
return Block.blockFlint.blockID;
}
}
Block.java
public static final Block Flint = (new BlockFlint(**, **)).setHardness(1.5F).setResistance(5.0F).setStepSound(soundStoneFootstep).setBlockName("flintblock");
CraftingManager.java
this.addRecipe(new ItemStack(Block.blockFlint, 1), new Object[] {"###", "###", "###", '#', Item.Flint});
this.addRecipe(new ItemStack(Item.Flint, 9), new Object[] {"#", '#', Block.blockFlint});
ru_RU
tile.flintblock.name=Блок кремня
2) Блок Шахтёрского кремня
BlockSilicon.java
package net.minecraft.src;
import java.util.Random;
public class BlocSilicon extends Block
{
public BlockSilicon(int par1, int par2)
{
super(par1, par2);
}
public int quantityDropped(Random par1Random)
{
return 1;
}
public int idDropped(int par1, Random par2Random, int par3)
{
return Block.blockSilicon.blockID;
}
}
Block.java
public static final Block Silicon = (new BlockSilicont(**, **)).setHardness(1.5F).setResistance(5.0F).setStepSound(soundStoneFootstep).setBlockName("siliconblock");
CraftingManager.java
this.addRecipe(new ItemStack(Block.blockSilicon, 1), new Object[] {"###", "###", "###", '#', Item.Silicon});
this.addRecipe(new ItemStack(Item.Silicon, 9), new Object[] {"#", '#', Block.blockSilicon});
ru_RU
tile.siliconblock.name=Блок шахтёрского кремня
Где ** - ID блока и текстуры
Спасибо автору этой темы:
http://forum.minecraft-galaxy.ru/topic/70239 за идею