Updated version: Better-TrainHorn. I'm not developing this anymore, but threelicht made a new updated version. You should use that one instead.

This mod adds a horn sound every time a train runs over a player. This was inspired by this reddit thread. Here is a video of it in action.

The sound was recorded by CrazyWashingtonianTrainNut on freesound.