Modifying Dimension Type

Hello, I am trying to modify william wythers oo and lithosphere to generate in a custom dimension (with a custom ID) and not generate in the overworld itself, is anyone familiar with how I can have those two datapacks do that?
Continue to help post