How to prevent worldgen from messing with the structures stone blocks

how to I prevent world gen from messing up my structures blocks
Continue to help post