Data Packs Game Mechanic

Blocking With Sword

  • Functions
  • 1,050 views • 5 today
  • 108 downloads • 0 today
  • 7
  • 6
  • 1
Antoha256M
Level 48 : Master Professor
165

📖 About

With this datapack, any sword can be used as a shield, but will only block half the damage.

Features:

  • When a player takes a sword into his hand, the `blocks_attacks` and `use_cooldown` components are added to it.
    • The `use_cooldown` component is needed for the general delay group for all swords separately from shields;
  • The sword blocks half of the damage;
  • After disabling blocking with an axe, the player cannot use the sword as a shield or as a weapon at all;
  • If the player has a shield in either hand, blocking with sword is disabled.
CompatibilityMinecraft 1.21
Tags

2 Update Logs

Update 1.0.1 : by Antoha256M 12/15/2025 2:07:54 amDecember 15, 2025 @ 7:07 am UTC

  • Just supports 1.21.9 to 1.21.11.
LOAD MORE LOGS
Curated in their collections

  Have something to say?

tollcraft
07/30/2025 4:39 am
He/Him • Level 50 : Grandmaster Steve Demolitionist
I feel like blocking should rather be parry
1

Welcome