This plugin has that feature, you can consult the people on there how to set it up as i haven't used this. http://dev.bukkit.org/bukkit-plugins/mobs/