This mod gives the player avatar a sense of self-preservation that the player apparently lacks - when on railway tracks it will take fright and attempt to move out of the way of moving trains. Note that this evasion only occurs if you are standing still.
Mod originally by GotLag
Updated for Factorio 1.1.0
https://forums.factorio.com/viewtopic.php?f=190&t=21725
Note: was designed for a way older version of factorio, and seems to have some issues which i'm working on fixing atm, but it appears to be at least partly functional.
Todo - Expose settings in game settings.