Smart Knockback
The Smart Knockback mod fundamentally improves the functionality of Knockback and Punch enchantments in Minecraft. These enchantments have now become intelligent - they affect only melee opponents, ignoring enemies that attack from a distance.
This solution makes gameplay more balanced and logical. You won't have to face situations where a knocked-back archer continues to shoot at you from afar. The enchantments work exactly where they are most effective - in close combat.
In the near future, configuration settings are planned to be added that will allow inverting this behavior. Players will be able to configure the mod so that enchantments affect only ranged opponents, which will be particularly useful for certain PvE gameplay styles.