Offset ore distribution from heightmap

I'm running a datapack with large mountains and I want to keep ore distribution consistently some number or distribution offset from the surface, this way for example, gold can always be found 100 blocks from the surface, no matter if that surface is at sea level or at the top of a mountain.

Continue to help post