Somewhere I saw that you have any codes with (certain) mods
can insert so that a house spawns
With the mod worldedit you can copy and paste built things
The only thing that comes to mind is Worldedit. You can copy things and paste them somewhere else.
With WorldEdit I think that should work, at least that's how I always do it
Definitely Worldedit in itself. But there's another practical method too. You can get the Schematica Mod which is also included in the Badlion Client (simply enter it on the Internet and download it). Damut you can save houses and then you have the template in the form of transparent blocks in front of you. In the original version, the Schematica Mod can also replicate this automatically if you have the required materials in your inventory. You only have to move back and forth because your range is not infinitely large.