Whenever the player hits a target, they deal some amount of knockback. However, no matter which item they use to hit, they always deal the same amount of knockback, unless they have the Knockback enchantment or sprint before hitting the target.
However, realistically, a heavier weapon would deal significantly more knockback than a light one. So I think it would be a nice touch to differentiate knockback based on the weapon used. I think a good idea would be to have the following values:
- Sword and Hoe: 100%
- Axe and Pickaxe: 110%
- Spear, Trident, Shovel: 120%
- Mace: 150%
Where 100% is the normal knockback without Enchantments nor sprinting (1.552 blocks). I think this would help differentiate weapons and tools a little bit more