This mod will allow you to set a limit on the spawn of structures.
My discord - link
You need Game Stages and CraftTweaker
Usage examples :
import mods.StructureStages;
StructureStages.addStructureStage(String stages, ResourceLocation dungeon);
While the player who generates new chunks will not have a test stage. Village Plains don 't generated
StructureStages.addStructureStage("test", <resource:minecraft:village_plains>);