Mob Targeting Enhancer adds dynamic targeting to hostile mobs. They periodically switch to the nearest enemy, attack animals too, but never other hostile mobs. Creepers avoid animals to prevent unwanted explosions. Lightweight and Forge 1.20.1 compatible.