Is there a way to change the hardness and resistance of a block dynamically by for example getting a variable from a tile entity?