How can I generate custom structures in the overworld?

Hi guys! I used to create worldgen datapacks a few years ago and now im pretty sure time has changed and I was wondering if there are any helpful guides or videos that can help me thru this. (I used to do them in 1. 18 i think but im sure the format has changed. Im making them at 1.21 now) cheeers!
Continue to help post