been racking my head for quite a while now over this issue. in my overworld gen revamp, all caves roughly in the stone layer get filled with water, even if the cave entrance is completely land locked. to give context, my world gen revamp is basically a soft blend of vanilla, amplified and large biomes, and from my understanding this is a problem that stems from amplified worlds, which usually have completely flooded caves that mojang never got around to fixing. so it makes sense in my semi-amplified world gen the flooded caves persist down to a certain point, but of course, i dont want them to be that way
I found a project over on github that fixed this issue for amplified worlds but it was for an older version using the deprecated "initial_density_without_jaggedness" function, which got replaced with "preliminary_surface_level" sometime before 1.21.11 which I'm making my mod for. I've tried altering many different values in the preliminary surface level function to try and replicate what the other mod did but nothing seems to be giving me my desired effect. would anyone more savvy at world generation coding know how to go about fixing this issue? really happy with the tweaks ive made to the rest of world gen and this is the one thing holding it back from being perfect, would really appreciate the help :)
ill have linked both the repository of the mod I found that fixed the issue for reference, my repository of my mod, and also some of the relevant json files for easy access
FliegendeWurst's amplified_fixed: https://github.com/FliegendeWurst/amplified_fixed
my wip world_remoulded: https://github.com/astral-wayfarer727/world_remoulded