23 lines
492 B
Java
23 lines
492 B
Java
package mods.tinker.tconstruct.blocks;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.world.World;
|
|
|
|
public class MetalOre extends TConstructBlock
|
|
{
|
|
public MetalOre(int id, Material material, float hardness, String[] tex)
|
|
{
|
|
super(id, material, hardness, tex);
|
|
}
|
|
|
|
public float getBlockHardness (World world, int x, int y, int z)
|
|
{
|
|
int meta = world.getBlockMetadata(x, y, z);
|
|
if (meta <= 2)
|
|
return 10f;
|
|
else
|
|
return 3f;
|
|
//return this.blockHardness;
|
|
}
|
|
}
|