This mod adds consequences for looting/hurting the villagers, and nearly every part of it can be tweaked through the config.