This mod allows you to configure, via a JSON file, which monsters villagers will flee from and at what distance.