ExtraTweaker

ExtraTweaker

5.8k Downloads

Changing block properties ignores data value

BLAMM67 opened this issue ยท 0 comments

commented

I understand if this falls under the "may not work with other mods" caveat.

I'm using the BlockProperties package to set hardness and blast resistance for some blocks in Immersive Engineering. What I'm seeing is that the property is set but it affects all blocks using the same id regardless of the data value.

For example, I'm trying to set the values on Concrete and Leaded Concrete:
BlockProperty.set(immersiveengineering:stoneDecoration:5, 8.0, 50.0);
BlockProperty.set(immersiveengineering:stoneDecoration:7, 10.0, 75.0);
The result is that all blocks using the immersiveengineering:stoneDecoration id are modified with a hardness of 10.0 and resistance of 75.0.

Is it possible to recognize the data value and treat these separately?