Created
March 16, 2014 14:38
-
-
Save anonymous/9584188 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CarnelianOre extends Block{ | |
public CarnelianOre(Material material) { | |
super(material); | |
setHardness(3F); | |
setStepSound(Block.soundTypeStone); | |
setCreativeTab(CreativeTabs.tabBlock); | |
setLightLevel(0.5F); | |
setLightOpacity(25); | |
setBlockName("carnelianOre"); | |
} | |
@SideOnly(Side.CLIENT) | |
@Override | |
public void registerBlockIcons(IIconRegister p_149651_1_) | |
{ | |
blockIcon = p_149651_1_.registerIcon("arcano:" + this.getUnlocalizedName().substring(5)); | |
} | |
@SideOnly(Side.CLIENT) | |
@Override | |
public IIcon getIcon(int p_149691_1_, int p_149691_2_) | |
{ | |
return blockIcon; | |
} | |
@Override | |
public int quantityDropped(int meta, int fortune, Random random) { | |
return fortune; | |
} | |
@Override | |
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) { | |
ArrayList<ItemStack> drops = new ArrayList<ItemStack>(); | |
drops.add(new ItemStack(Arcano.carnelianOre)); | |
return drops; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment