How to change ore generation to another dimension (1.19.2)

I want to make mekanism osmium ore generate on ad astra's moon. How do I change the dimension of generation?
Continue to help post