On this page8 sections
Remember holding right-click with a sword to block, back in 1.8? Minecraft took it away in 1.9 and handed us shields instead. This pack brings it back. Hold right-click with any sword, it comes up in the old guard pose, and every hit you block does about half the damage.
It's a datapack only. No resource pack, no OptiFine, no mods. The block runs on the same game code as a shield, so it behaves like a real part of Minecraft.
Which edition do you play?
Java Edition: choose the datapack ZIP (1.21.5 – 26.4). No resource pack, no mods. The Java instructions and screenshots below describe the datapack.
Bedrock Edition: choose the .mcaddon add-on instead of the Java ZIP. Its controls and limits are in Bedrock add-on near the end of this page.
Java datapack: quick start
- Download the ZIP. Don't extract it.
- Drop it into
world/datapacksand run/reload. - Take a sword in your main hand and leave your off hand empty.
- Hold right-click to block.
What you get
Any sword works
Wooden, stone, copper, iron, gold, diamond and netherite, plus swords you loot, trade for or get from other packs. Your sword keeps its name, enchantments and durability.
The 1.8 guard pose
The sword tilts across your body in first and third person, the same pose as in 1.8. Other players see it too.
Half damage, from any side
Zombies, players, arrows, even a hit from behind. A 10-damage hit becomes 5.5, just like the 1.8 formula.
Feels like a block
Every block clangs and throws sparks off the blade, and you get knocked back a lot less.
How to block
- Hold a sword in your main hand. Your off hand should be empty, or hold a totem, arrows, a map, a compass or a clock.
- Hold right-click. The sword comes up right away, with no delay like a shield has.
- Let go to attack again. Like with a shield, you can't swing while blocking and you walk slower.
The first time you pick up a sword, a hint above the hotbar shows which button to hold.
A blocked hit does (damage + 1) / 2. Your armor and Protection still count on top of that.
| Hit | Not blocking | Blocking |
|---|---|---|
| 3 (zombie on Normal) | 3 | 2 |
| 6 | 6 | 3.5 |
| 10 | 10 | 5.5 |
| 20 | 20 | 10.5 |
Fire, lava, falling, drowning, suffocation and potions go straight through, the same things a shield can't stop either.
Built for survival
I wanted it to feel like part of the game, so the sword plays by the shield's rules:
- Durability: blocking a hit of 3 damage or more costs 1 durability. Unbreaking works as usual.
- Axes: an axe knocks your guard down for 5 seconds, the same as with a shield. The axe hit itself is still halved.
- Off hand: holding a shield, torch, blocks, food, a bow or fireworks turns sword blocking off, and right-click does its normal thing. Want the full shield block? Put a shield in your off hand.
- Your other swords: only the sword in your hand changes. Swords in your inventory or in chests stay normal.
- Other packs: swords that already do something on right-click are left alone.
- Mobs fight like before. Only players block.
Requirements
| Edition | Java Edition only |
| Versions | 1.21.5 to 26.4 |
| Mods | None |
| Resource pack | Not needed |
| Multiplayer | Works on servers, every player can block |
Still on 1.16 or 1.17? The old version is in the download list below. It works differently: you block by holding Shift, and it needs its resource pack.
Settings and removing the pack
Press Esc and open Sword Blocking:
- Blocking: On/Off turns blocking on or off for everyone.
- Uninstall turns every online player's swords back to normal and deletes the pack's scoreboards. Then delete the ZIP from
world/datapacksand run/reload.
1.21.5 has no pause menu button. Use the [On/Off] and [Uninstall] buttons in the chat message you get after /reload.
Bedrock add-on
One .mcaddon behavior pack for Bedrock 1.20.80 and newer. No experimental toggles.
- Open the
.mcaddon. Minecraft imports the behavior pack. - Edit your world → Behavior Packs → activate Sword Blocking.
- Hold a sword and sneak to block. Bedrock swords have no hold-to-use action, and Bedrock players already raise a shield by sneaking.
Same rules as Java: you take (damage + 1) / 2 from every direction, hits of 1 or less aren't blocked, fire, lava, falling, drowning and magic go through like on a shield, each blocked hit costs 1 durability and an axe breaks your guard for 5 seconds. Your off hand must be empty or hold something without a use (totem, name tag, map, compass, clock). What is different:
- There is no raised-sword pose. Changing it would mean replacing the player animation, which breaks skin and animation packs.
- The half damage is worked out after armor (Java works it out before), and Unbreaking doesn't lower the durability cost.
- With cheats on,
/scriptevent tdt_swordblock:toggleturns blocking on or off for everyone.
Recorded checks: clean loading on Bedrock Dedicated Server 1.20.80.05 and 1.26.66.1, and the blocking rules in a script stub. It has not been played in a Bedrock client yet. See Microsoft's Bedrock add-on guide for import steps on each device.
FAQ
Right-click doesn't block
Check your off hand first: it has to be empty, or hold a totem, arrows, a map, a compass or a clock. Make sure blocking is On in Esc → Sword Blocking. If an axe just hit you, wait 5 seconds.
Is it exactly like 1.8?
The pose and the damage are: a block takes (damage + 1) / 2, same as 1.8. Everything else is modern Minecraft: you can't attack while blocking, the attack cooldown still applies and axes break your guard.
Is a shield better?
A shield stops the whole hit, but only from the front, and it takes your off hand. A sword halves hits from every side and leaves your off hand free for a totem.
Does it work with swords from mods or other datapacks?
Yes, as long as the item is in the #minecraft:swords tag and doesn't already have its own right-click action.
Ready to play?
Choose your edition, platform and Minecraft version:
First time? How to install datapacks and resource packs
Changelog
Bedrock 1.0Latest4 downloads
Bedrock add-on edition for Bedrock 1.20.80 and newer. Java builds stay available below.
1.21.5-26.44 downloads
Rebuilt from scratch for 1.21.5 – 26.4.
New
- Hold right-click with any sword to block, in the real 1.8 guard pose (first and third person).
- A block takes (damage + 1) / 2 from any direction, arrows included, like in 1.8.
- Blocks clang and spark, and you get knocked back less.
- Settings in the pause menu (1.21.6+): on/off and uninstall. On 1.21.5 they're chat buttons.
Survival
- Same rules as a shield: fire, lava, falls, drowning and potions go through, axes break your guard for 5 seconds, blocking a hit of 3+ costs 1 durability.
- Shields, torches, blocks and food in the off hand work normally.
- Only the sword in your hand changes; your other swords stay vanilla.
Removed
- Blocking with Shift, and the carrot-on-a-stick swap that could lose your sword.
- The resource pack.
1.22 downloads
The original version for 1.16 – 1.17. You block by holding Shift. Needs its resource pack.
Something broken, or an idea for this pack?Report a bugSuggest a feature
Comments
Loading comments…
Author
TheDemonTuan
I build vanilla Minecraft datapacks, then show them off on YouTube.
Related articles

Bedrock · Add-on, Java · DatapackMC 1.21.11 – 26.4
Mahoraga Wheel of Adaptation: Minecraft Datapack & Add-on
47 views25 downloads

Bedrock · Add-on, Java · DatapackMC 1.21.11 – 26.4
ThrowAxe: Throwable Axe Datapack & Add-on for Minecraft
12 views7 downloads

Bedrock · Add-on, Java · DatapackMC 1.21.11 – 26.4
Shadow Monarch: Arise (Solo Leveling) – Java Datapack and Bedrock Add-on
6 views

Bedrock · Add-on, Java · DatapackMC 1.18 – 26.4
Double Jump for Minecraft: Java Datapack and Bedrock Add-on
27 views27 downloads









