@Override
  @SideOnly(Side.CLIENT)
  public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
    int meta = BlockPosM.tmp(x, y, z).getMetadata(world);
    if (meta == 0) return Blocks.end_stone.getIcon(world, x, y, z, side);

    return iconArray[iconIndexes[side][meta - 1]];
  }
 @Override
 public void onBlockAdded(World world, int x, int y, int z) {
   if (BlockPosM.tmp(x, y, z).getMetadata(world) == 0) {
     BlockPosM.tmp(x, y, z).setMetadata(world, world.rand.nextInt(15) + 1, 3);
   }
 }