Directional objects when generated

there are these objects i want to spawn in my game with a custom biome that i always want to be facing the same direction, they are a bit like boulders.

I have absolutely no clue how i could get objects to generate in and all face the same direction, like to the south for example.

Would i have to write some fancy lua code for it?