HomeJavaDatapacksVanilla Sword Blocking
Vanilla Sword Blocking
DatapacksJava

Vanilla Sword Blocking

by Player005 · on Modrinth

A simple mod/plugin/datapack that brings back sword blocking to reduce taken damage, just like in 1.8! (only required on server!)

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.5–1.21.10 · Fabric⬇ Download for 1.21.5–1.21.10 · Forge⬇ Download for 1.21.5–1.21.10 · NeoForge⬇ Download for 1.21.5–1.21.10 · Quilt⬇ Download for 1.21.5–1.21.9 · Data pack⬇ Download for 1.21.4 · Bukkit⬇ Download for 1.21.4 · Folia⬇ Download for 1.21.4 · Paper⬇ Download for 1.21.4 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Vanilla Sword Blocking

This is a very simple datapack/paper plugin that brings back the old sword blocking mechanics, allowing you to block with your sword to reduce the damage you take.
The best part about it: It's server-only, so players don't even have to install a mod on their client for this - just add it to the server and it works for everyone!

Features:

Caveat:

How it works

Essentialy, this plugin uses the recently added component called "consumable", to make Minecraft think you can eat swords!

This is used to enable an animation called "block", so it looks like you're blocking.

Then, the plugin prevents you from actually eating your sword (you're welcome!), and instead reduces damage when it detects you are blocking ("eating", from minecraft's perspective) your sword.

A first-person view of a minecraft player blocking with their Netherite sword

Note:

While the plugin variant can technichally be installed on any server version 1.21.2 and later, the blocking will only be displayed correctly by clients on version 1.21.4 (24w44a, to be exact) and later.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more