Shield Nerf

Make shields only protect some of the damage!

by
1.1K Downloads
datapackfabricforgeneoforgequiltgame-mechanicsmanagementutility
Rent Server with this Mod

About this Mod

Shield Nerf

Make shields only block some of the damage taken, instead of all of the damage taken!

Warning: This pack tends to break. A lot.
Notice: This pack is incompatible with Forge/NeoForge despite being listed as supported in the versions. This isn't the pack's fault, it's Forge's/NeoForge's, because Minecraft's statistics system which the pack uses to determine shield logic is broken in NeoForge/Forge.

Questions? Post them in my discord as they are more likely to get seen there. Find it on the sidebar. Any non-urgent issue should be posted in the github repository.

Important

If you downloaded 1.0.0 or 1.0.1 of the mod, please update to 1.0.2 as version 1.0.0 doesn't work at all and 1.0.1 doesn't work on 1.20.3-1.20.6.

Notice

Shields will still block all knockback, and the death message isn't correct if you die from the non-blocked damage when you block a hit, but when making this I had to decide whether to use the minecraft:generic damage type which would make shields block all knockback and have the incorrect death message, or to use the minecraft:mob_attack damage type, which would give a better death message, but I would need to figure out how to bypass the shield, which the only method I can think of would cause knockback to be COMPLETELY REVERSED so that you'd get knocked toward the attacker instead of away from it, because I'd need to cause the damage to come from behind the player, and I decided on the former because the knockback part is a dealbreaker.

Configuration

Configuration is stored in the "ShieldNerfSettings" scoreboard objective.

Settings

  • PercentDmgBlocked - The amount of damage that ISN'T blocked by the shield, as a percent. (I know, misleading name, but it's simpler for development purposes)
    • 50 is the default and is set when the pack loads. A value of 0 is vanilla behavior. A value of 33 is about correct for Minecraft 1.9.x and 1.10.x. A value of 50 is half damage blocked, and is correct for 1.8.x and older versions of Minecraft (sword blocking). 100 makes the shield not block any damage.
    • Any number above 100 will make the player take more damage when blocking than if they hadn't blocked.
  • EnableHurtSound - Whether the hurt sound plays when you take partial damage. Only works if PercentDmgBlocked > 0

Known Issues

  • Knockback and death message related issues
    • See the Notice section.
  • The damage tilt won't show, the hurt sound won't play (fixed), and the hearts on the HUD won't flash when taking partial damage from a blocked attack.
    • I have no idea what causes this, but I'm pretty sure it isn't fixable by the datapack due to the nature of how Minecraft handles this kind of stuff.

To Modpack Creators:

I permit the use of this datapack/mod in your modpacks. You can include it in modpacks without the need to ask me about it. However, notifying me if it is being included in your modpack would be nice.

Regarding Future Versions of Minecraft

When 1.21.5 fully releases, this datapack will become obsolete due to the addition of the blocks_attacks item component added in 25w04a, which is more customizable and works much better than this pack. Therefore I will not be supporting versions 1.21.5 and newer. I will instead make a new datapack that modifies the default behavior of shields using the blocks_attacks component instead.

Available Versions

v1.0.3release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 25w02a, 25w03a, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11fabric, quilt
March 17, 2025
v1.0.3release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 25w02a, 25w03a, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11datapack
March 17, 2025
v1.0.2release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 25w02a, 25w03afabric, quilt
March 17, 2025
v1.0.2release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 25w02a, 25w03adatapack
March 17, 2025
v1.0.1release
MC 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 25w02a, 25w03afabric, forge, neoforge, quilt
March 17, 2025

How to Install Shield Nerf on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Shield Nerf". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabricforgeneoforgequilt

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+15 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Shield Nerf server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Shield Nerf compatible with datapack and fabric and forge and neoforge and quilt?

Shield Nerf officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.11, 1.21.10, 1.21.9. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Shield Nerf – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Shield Nerf consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Shield Nerf with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Attribution 4.0 International
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.525w03a25w02a1.21.4+8 more