ModsFinder

Defense

by Knarfy

Defense lets players block unwanted PvP interactions while keeping PvP available on servers that allow it.

FabricClient and serverMIT LicenseOpen source1.21 – 1.21.11

What it does

Defense gives each player a toggle that marks them as immune to incoming PvP damage. When the toggle is on, direct attacks, projectiles and lit TNT do not hurt the player. The mod was originally built for an Empty World SMP, where players wanted protection from others without turning off PvP across the whole server.

The toggle sits in the survival player inventory as a shield icon, and a shield icon also appears next to the nametag so others can see the state. The icon can be changed through Skin Customization Settings, where a switch shows the current option. The mod is published for Fabric only, for game versions 1.21 – 1.21.11, with 0.5.0 as the latest build for 1.21.11. The server and every player need the mod installed. The code is open source under the MIT License.

Key features

  1. PvP immunity toggle

    A button in the survival inventory switches the player's defense on or off, covering attacks and projectiles alike.

  2. Protection from lit TNT

    Players with defense enabled take no damage from lit TNT placed nearby, not only from melee and ranged attacks.

  3. Nametag shield icon

    A shield icon shows beside the player's nametag while defense is active, so others can tell who is protected.

  4. Selectable icons

    The shield icon can be replaced through Skin Customization Settings, and the choice applies inside Minecraft without extra files.

  5. Planned updates

    The author plans further functions and quality-of-life changes for later releases of the mod.

Compatibility

Latest build for each game version and loader.

1.21.111.21.11-0.5.0
1.21.61.21.6-0.4.3
1.21.51.21.5-0.4.3
1.21.41.21.4-0.4.2
1.21.11.21-0.4.2
1.211.21-0.4.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Protected PvP servers

Servers that keep PvP enabled can let players opt out of unwanted fights while others continue to compete.

Empty World SMPs

The mod was originally created for an Empty World SMP, where it was built and tested for that setting.

Who it’s for: Server owners who run PvP servers and players who want control over when they can be attacked.

How it compares

Full comparison

PvP Toggle for fabric is server-side only, open source under the MIT License and published for 1.21.4 – 1.21.7. PvP Vote is also server-side only and open source under the MIT License, but its build covers only 1.21.11. Defense needs both client and server, so every player installs it.

ModLoadersGame versionsEnvironmentUpdated
DefenseFabric1.21 – 1.21.11Client and server2026-01-10
PvP Toggle for fabricFabric1.21.4 – 1.21.7Server-side only2025-08-14
PvP VoteFabric1.21.11Server-side only2026-07-30

Questions

Does Defense need to be installed on both sides?

Yes. Every player and the server need a copy of the mod.

Which game versions does Defense support?

Files exist for 1.21, 1.21.1, 1.21.4, 1.21.5, 1.21.6 and 1.21.11, and the latest Fabric build is 1.21.11-0.5.0.

Can players change the shield icon?

Yes. The icon is selected through Skin Customization Settings within Minecraft.

In the catalog

Defense is one of 5,392 Social mods on ModsFinder, and one of 4,084 Social mods for Fabric. 19,862 mods support Minecraft 1.21.11.

More from Knarfy

All projects

Similar mods

What the author says

(These Icons are selectable via the Skin Customization Settings within Minecraft) More features are planned, and updates will add new functionality to the mod, along with quality of life changes to make it even better to use.
Knarfy, on the Modrinth page

Official listing

Owner
Knarfy
Published
2024-07-21
Updated on Modrinth
2026-01-10
Facts verified
2026-10-15

Tags