I think you could probably do this using geometry nodes, you could probably use a similar node tree that I use for my forest path scene.