How to make world specific data packs?

I remember a way to make it so that datapacks auto load when opening a world, and unload when leaving, Ive seen it with other mini games I downloaded before.

Continue to help post