I finally got the code correct instead of tautology code. also I changed the name moss stone into mossy cobblestone without a resource pack
Proof
Java
@Override
public float getBlockHardness(World world, int par2, int par3, int par4)
{
final int meta = world.getBlockMetadata(par2, par3, par4);
return meta == 1 ? 3.0F : 1.5F;
}
@Override
public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ)
{
int meta = world.getBlockMetadata(x, y, z);
return (meta == 1 ? 60.0F : 30.0F) / 5.0F;
}
Display More