TDT
Language: EN

You are blocking ads

Ads keep these packs free. While your blocker is on, the site shows alternative ads and this notice on every visit. Allow ads on thedemontuan.dev for a cleaner experience.

Sword Blocking datapack cover: a Minecraft player blocks a zombie's hit with a diamond sword
Datapack6 min read21 views12 downloads

1.8 Sword Blocking Datapack & Add-on for Minecraft

Bring back 1.8 sword blocking: block with any sword and take half damage. Java datapack 1.21.5–26.4 (hold right-click), Bedrock add-on 1.20.80+ (sneak).

Platforms
Bedrock · Add-on, Java · Datapack
Minecraft
1.21.5 – 26.4
Updated
Nov 19, 2026
Author
TheDemonTuan
On this page8 sections
  1. Which edition do you play?
  2. What you get
  3. How to block
  4. Built for survival
  5. Requirements
  6. Settings and removing the pack
  7. Bedrock add-on
  8. FAQ

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

  1. Download the ZIP. Don't extract it.
  2. Drop it into world/datapacks and run /reload.
  3. Take a sword in your main hand and leave your off hand empty.
  4. 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.

A player blocking a zombie's hit with an iron sword, sparks flying off the blade

How to block

  1. 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.
  2. Hold right-click. The sword comes up right away, with no delay like a shield has.
  3. 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.

First-person view of a diamond sword raised in the 1.8 guard pose

A blocked hit does (damage + 1) / 2. Your armor and Protection still count on top of that.

HitNot blockingBlocking
3 (zombie on Normal)32
663.5
10105.5
202010.5

Fire, lava, falling, drowning, suffocation and potions go straight through, the same things a shield can't stop either.

A player deflecting skeleton arrows with a diamond sword

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.

A duel where a diamond axe knocks down a netherite sword's guard

Requirements

EditionJava Edition only
Versions1.21.5 to 26.4
ModsNone
Resource packNot needed
MultiplayerWorks 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/datapacks and 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.

  1. Open the .mcaddon. Minecraft imports the behavior pack.
  2. Edit your world → Behavior Packs → activate Sword Blocking.
  3. 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:toggle turns 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.

Join the discussionQuestions, ideas or a bug? Ask the creator and other players.0 comments

Author

TheDemonTuan

I build vanilla Minecraft datapacks, then show them off on YouTube.

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