ExterminatorJeff / UndergroundBiomes

Underground Biomes Mod for Minecraft
15 stars 6 forks source link

Hardness reads current stone hardness #9

Closed iguanaman closed 10 years ago

iguanaman commented 11 years ago

I make a mod that modifies the hardness of smooth stone and I'd like to include support for Underground Biomes.

Since your blocks don't support setHardness (as it returns the value directly in getBlockHardness) I'd have to replace all classes with extended ones of my own.

Would you consider changing the getBlockHardness function to read the current hardness of stone and then multiply it by the modifier, rather than use the default Minecraft value of 1.5f?

Thanks

grompe commented 11 years ago

Use:

exterminatorJeff.undergroundBiomes.common.UndergroundBiomes.hardnessModifier = your_value;
exterminatorJeff.undergroundBiomes.common.UndergroundBiomes.resistanceModifier = your_value;
iguanaman commented 10 years ago

Much appreciated :+1: