Skip to content

Advanced PvP Toggle

A simple mod that lets players toggle PvP protection with commands and status icons, made for public servers.

by swzo· DerErneuerer, Pipo1660Game mechanicsManagementUtility
NeoForge
Loaders
NeoForge
Downloads on Modrinth
3.4K
Followers on Modrinth
1
versions
3
Updated
September 6, 2026Sep 6
Published
in 2026
UI Preview · swipe

At a glance

Runs on NeoForge
For Minecraft 1.21.1
Needed on the server; optional in the game
Latest version — 1.0.2 from September 6, 2026
License MIT — free
Where it's needed
In gameoptionalOn serverrequired

Needed on the server; optional in the game

Game versions1.21.1

PvP Toggle

Controlled player-versus-player combat for NeoForge servers.

Source Code · Brassworks SMP

PvP Toggle is a lightweight Minecraft mod that gives players control over their PvP status without adding unnecessary complexity. Players can enable or disable PvP, manage exceptions for individual players, and immediately see who can be attacked through compact nametag icons.

The mod is designed for Minecraft 1.21.1 with NeoForge. All core functionality is server-controlled and remains available through commands. The graphical BrassUI management menu is entirely optional.

Features

  • Enable or disable PvP with simple commands.
  • Configurable delay before PvP protection becomes active.
  • Block or allow PvP with individual players.
  • Small nametag icons showing whether another player can be attacked.
  • Optional protection against knockback-only attacks and player pushing.
  • Administrative commands for forcing player PvP states.
  • Configurable feedback when a protected interaction is blocked.
  • Persistent PvP data stored separately for each world or server.
  • Simple Voice Chat integration that prevents nametag icons from overlapping.
  • Optional BrassUI management menu with no required server-side UI dependency.
  • Compatibility with legacy PvP Toggle clients using the original icon protocol.

Optional PvP Management Menu

Run /pvp menu to open the optional BrassUI management screen.

The menu:

UI Preview

For the UI a compatible KotlinForForge installation are required only on clients that want to use this menu. If they are missing, /pvp menu displays an availability message while every regular PvP command continues to work.

Icons

PvP Toggle renders small icons beside player nametags:

  • PvP enabled PvP On — The player can be attacked.
  • PvP disabled PvP Off — PvP against the player is blocked.

Player Commands

CommandDescription
/pvp onEnables PvP immediately.
/pvp offDisables PvP after the configured delay.
`/pvp block `Blocks PvP between you and another player.
`/pvp unblock `Allows PvP with a previously blocked player again.
/pvp statusShows your current PvP status.
/pvp menuOpens the optional BrassUI management menu.
/pvp helpLists the available PvP commands.

Admin Commands

Administrative commands require permission level 2.

CommandDescription
`/pvpadmin forceon `Forces PvP on for a player.
`/pvpadmin forceoff `Forces PvP off for a player.
/pvpadmin reloadReloads the stored PvP data.

Configuration

PvP Toggle creates a server-side configuration for controlling protection behavior.

OptionDescriptionDefault
one-sided-toggleOnly protects the player from incoming PvP when /pvp off is active.false
take-effect-timeDelay in minutes before /pvp off becomes active.10
cancel-pending-off-on-attackCancels pending protection when the player attacks another player.true
send-action-messagesSends feedback when PvP damage, knockback, or pushing is blocked.false
block-knockbackBlocks knockback-only weapons and effects during protected interactions.true
block-player-pushingPrevents protected players from being physically pushed by other players.true

Installation

Server

  1. Install NeoForge for Minecraft 1.21.1.
  2. Place PvP Toggle in the server's mods directory.
  3. Start the server once to generate the configuration.

KotlinForForge is not required on the server.

Client

Install PvP Toggle on the client to display nametag icons.

To use the graphical management menu, additionally install:

  • BrassUI (Automatically included in the Mod)
  • A compatible KotlinForForge version

Clients without PvP Toggle or without the optional UI dependencies may still connect because the network channels are optional. Legacy clients using protocol version 1 retain icon support.

Simple Voice Chat Support

When Simple Voice Chat nametag icons are visible, PvP Toggle automatically moves its icons to prevent overlap. The PvP icons return to their normal position when voice chat icons are hidden. Simple Voice Chat remains optional.

License

PvP Toggle is licensed under the MIT License. You may use, modify, and redistribute the software under the terms of that license.

Credits

Links

FAQ

How to install Advanced PvP Toggle?

Install NeoForge for your Minecraft version, download Advanced PvP Toggle for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Advanced PvP Toggle support?

Advanced PvP Toggle has builds for Minecraft 1.21.1.

Is Advanced PvP Toggle needed on the server?

Needed on the server; optional in the game

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More