Sword Blocking Mechanics


About the Modification
The Sword Blocking Mechanics mod brings back the useful sword blocking ability that was available in Minecraft versions 1.7 and 1.8. Now you can once again use the right mouse button while holding a sword to block 50% of incoming damage. This is a simple and convenient solution that often outperforms bulky shields in many situations.
If you still prefer to use a shield, simply place it in your offhand - in this case, priority will be given to the shield rather than sword blocking.
Advanced Features
All aspects of sword blocking are fully customizable. Additionally, the mod introduces a new parry mechanic: during the first 0.5 seconds after initiating a block, the sword functions like a shield and completely prevents all incoming damage.
Technical Details
To configure items that can use the sword blocking mechanic, add them to the swordblockingmechanics:can_perform_sword_blocking tag. Items that should have priority when used from the offhand (while holding a sword in the main hand) should be added to the swordblockingmechanics:overrides_sword_blocking_in_offhand tag.


Installation
⏩ REQUIRED ON CLIENT & REQUIRED ON SERVER
⏩ REQUIRES PUZZLES LIB TO BE INSTALLED (FABRIC & NEOFORGE)
⏩ REQUIRES FABRIC API TO BE INSTALLED (FABRIC)
⏩ REQUIRES FORGE CONFIG API PORT TO BE INSTALLED (FABRIC)
Configuration
Mod configuration is available directly in-game through the mod menu (requires Mod Menu installation on Fabric). For manual configuration using a text editor, configuration files are located in the .minecraft/config folder and are named MOD_ID-client.toml, MOD_ID-common.toml, or MOD_ID-server.toml depending on the configuration type.