Is there a way to change the height where the ocean turns to lava, and to swap out that lava?

I want to create a datapack where the whole world is in a deep freeze, thus the top layer will be a modded fluid, and bellow that regular water in the caves and deepest parts of the ocean. However, I have no idea how I'll do this as of now.

Continue to help post