With the Sword Blocking mod, you can use your sword to block enemy attacks, which allows you to reduce incoming damage by 80%. This is very convenient and adds variety to the Minecraft Bedrock combat system. And due to the fact that the addon is built on a script system, it is compatible with any other modifications.
The weapon will now have a new shield icon - this means that the sword can block attacks.
Important
If the player has a shield, then defending with a sword will not be effective, because the shield is a priority when blocking.