

Blocking With Sword
This datapack brings back the classic sword blocking mechanic that was available in earlier versions of Minecraft. Now any sword in your hands can serve as an improvised shield, albeit with some limitations.
Main Features
When a player picks up a sword, special components blocks_attacks
and use_cooldown
are automatically added to the weapon. The first one is responsible for the ability to parry attacks, while the second sets an individual cooldown for all swords, separate from standard shields.
The blocking mechanism works as follows: when using a sword as a shield, it absorbs exactly half of the incoming damage. This makes it less effective than a specialized shield, but still provides valuable protection in critical situations.
Important Limitations
The system has several important nuances to consider. If a player uses an axe to disable blocking, they temporarily lose the ability to use the sword for both defense and attack. Additionally, having a shield in either hand completely disables the sword blocking function - priority is always given to specialized protective equipment.
This datapack is perfect for players who value flexibility in combat and want to have additional tactical options, even when a full shield is not at hand.