Disable Ceretain Structures in the Overworld and Let them spawn in Custom Bioms etc. From Other Mods

Im very new to data packs and would like to let specific structures spawn in other biomes and disable them completely from spawning in the overworld. for example im making a custom dimension for a space mod "Stellaris" and i would like to let a structure from another mod "Gigeresque" spawn in my custom dimension i already have a biome in it so how could i make it possible that the structure from the mod does not spawn in the Overworld at all but will spawn in my custom biome on another dimension?
Continue to help post