Path Generation with Obstacles

Godot Version

4.3

Question

I use Path3D to create random generated road.
Now I want to put a rock on some points.
I’m able to put the rock and everything, but because the Y position of the point is randomized the rock won’t spawn at the right Y position.
I put the rock’s position to the ‘path.curve’ position, but sometimes it spawns too low, sometimes too high.
How can I make it so it spawns like half above the road/path?

If further explanation is needed tell me.

Thanks to anyone who gives me the solution.