Blocking With Sword
No shield at hand - no problem! You can block half the damage with any sword!
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Blocking With Sword
📖 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.
#
🔗 Links
You can leave a comment on the PMC page!
Russian discord server of datapackers / Русский дискорд сервер датапакеров
Если вы датапакер, ищите адекватной помощи, полезных ресурсов и возможности поделиться проектами, то вам на СвинСоюз: Датапаки! Это сервер-ответвление от изначального заброшенного сервера ZeroCaty "СвинСоюз". Сейчас мы не имеем к нему никакого отношения.

