I would like to clarify that there can be many filtration parameters. Not just water. Each planet has its own exclusive elements that are not found on other planets, but can appear in new ruins packs. Not to mention that there are a large number of planets and surfaces from mods, with their own exclusive elements. And these can be not only landscape elements, but also buildings.
I'm afraid that if we go this route, it will be too complicated and cumbersome.
I would suggest giving users and developers of ruins packs the opportunity to choose which ruins
should be generated on which planets and surfaces.
That is, to add filtration not to the main core of the mod. But to add it as an option directly to the ruins pack template. And as a filtration, write down - on which planets and surfaces this ruins pack can be generated, and on which it cannot.
And if you want to put in more effort, you can add planet and surface selection to the ruins pack template as additional settings for users.