Combat Toggle: Getting Started
On this page (5)
Combat Toggle lets each player on a server or single-player world opt in to PvP individually. Every player is in either Peace mode (no PvP) or Combat mode (PvP active), with server-enforced protection, combat tagging during fights, configurable cooldowns, nameplate indicators, and an on-screen HUD badge.
[!NOTE] Combat Toggle
2.0.0ships for two Minecraft Forge editions — 1.20.1 and 1.19.2 — that share the same core Peace/Combat concept but differ in client requirements, toggle commands, and anti-cheese/region extras. Both editions are called out clearly throughout these guides.
Requirements
No third-party libraries or companion mods are required on either version.
| Edition | Minecraft | Forge | Java | Client install | Server install |
|---|---|---|---|---|---|
1.20.1 Forge |
1.20.1 (exact) |
47.3.0 – 47.x (below 48) |
17+ |
Required (protocol v4 handshake) |
Required |
1.19.2 Forge |
1.19.2 ([1.19.2, 1.20)) |
43.0.0+ (built against 43.3.0) |
17 |
Optional (vanilla clients allowed) |
Required |
Client vs. server installation
- On 1.20.1 Forge: Install
combattoggle-2.0.0.jarinmods/on both the server and every client. The mod enforces an exact network protocol match (v4) at handshake so clients without the mod are rejected cleanly instead of playing with a desynced HUD. - On 1.19.2 Forge: Install
combattoggle-2.0.0.jaron the server; clients do not have to install it. Vanilla clients and Forge clients without the mod can join normally, toggle via/ct,/combat, and/peace, and watch combat-tag timers on the action bar. Installing it client-side on 1.19.2 adds the HUD icon, on-screen timers, theVtoggle keybind, optional sound cues, and an in-game HUD settings screen.
Keybinds and controls
| Input | Default | Edition | What it does |
|---|---|---|---|
Toggle Combat Mode |
V |
1.20.1 & 1.19.2 (client mod) |
Asks the server to switch between Peace and Combat mode (rebindable under Options → Controls → Key Binds → Gameplay) |
/combattoggle status |
— |
1.20.1 & 1.19.2 |
Shows your current mode, active combat tag, and whether a cooldown restricts your next switch |
/combattoggle / /combattoggle help |
— |
1.20.1 & 1.19.2 |
Lists the commands you have permission to run (entries on 1.19.2 are clickable) |
/ct / /combattoggle toggle |
— |
1.19.2 only |
Chat command equivalent of pressing V (works from vanilla clients) |
/combat and /peace |
— |
1.19.2 only |
Switch directly to Combat or Peace mode instead of flipping |
/combattoggle client |
— |
1.19.2 only |
Shows what the optional 1.19.2 client mod adds and prints the configured download link |
Mods → Combat Toggle → Config |
— |
1.19.2 (client mod) |
Opens the in-game HUD settings screen with a drag-to-position preview |
[!TIP] On 1.20.1, presses of V made while chat, your inventory, or another screen is open are drained and discarded so closing a menu never causes an accidental mode toggle.
First 10 minutes
Follow these steps when joining a world or server with Combat Toggle for the first time:
- Check your starting mode.
- By default, new players start in Peace mode (
defaultCombatMode = falseon 1.20.1;defaultMode = PEACEon 1.19.2). - Once the server finishes syncing your state, the mode badge appears at the top centre of your screen (
PEACEin blue orCOMBATin red). On 1.20.1, you also receive a one-time welcome message explaining your starting mode and controls.
- By default, new players start in Peace mode (
- Test Peace protection.
- While you or another player is in Peace mode (under the default
requireBothCombatEnabled = truerule), hitting each other deals no damage, triggers no knockback, plays no hurt sound, and does not advance combat advancements. - The attacker receives an explanatory chat hint (throttled so it does not spam).
- While you or another player is in Peace mode (under the default
- Inspect your status before switching.
- Run
/combattoggle statusin chat to verify your mode, whether you are combat-tagged, and whether any cooldown applies to your next switch.
- Run
- Opt in to Combat mode.
- Press V (or run
/ct//combaton 1.19.2) to enter Combat mode. - Your badge updates to Combat, a confirmation sound plays (if enabled), and your nameplate updates to red with the
⚔prefix (unless another scoreboard team owns your nameplate underPRESERVE_EXISTINGon 1.20.1). - On 1.19.2, if the server has enabled
toggleWarmupSeconds > 0, a countdown runs on your action bar and HUD; wait it out without taking or dealing damage, or toggle again to cancel it.
- Press V (or run
- See how tagging and cooldowns work during a fight.
- When two Combat-mode players fight, both receive a 30-second combat tag (
Tag: 00:30below your badge, or on the action bar in 1.19.2). - While tagged, you cannot switch back to Peace mode until the tag expires (and if you were force-flipped into Combat by a tag, 1.20.1 automatically restores your previous mode on expiry when
restoreModeAfterTag = true). - By default (
cooldownTriggersOnPvp = true,cooldownSeconds = 600), PvP also starts a 10-minute cooldown that prevents leaving Combat (PEACE_ONLY), shown asCD: 10:00below the badge. Toggling without fighting does not start a cooldown by default (cooldownTriggersOnToggle = false).
- When two Combat-mode players fight, both receive a 30-second combat tag (
- Return to Peace mode when safe.
- Once your tag and cooldown finish, press V (or run
/peaceon 1.19.2) to return to Peace mode.
- Once your tag and cooldown finish, press V (or run
- Adjust the HUD to taste.
- On 1.20.1, edit
config/combattoggle-client.tomlto switch tocompactHud = true(19×19 icon-only badge), movehudAnchor(LEFT,CENTER,RIGHT), tweakhudXOffset/hudYOffset, or changehudOpacityPercent. - On 1.19.2, open Mods → Combat Toggle → Config from the client menu and drag the preview badge directly to where you want it.
- On 1.20.1, edit
Key differences between 1.20.1 and 1.19.2
While both ports are version 2.0.0 and share the same core Peace/Combat mechanics, each port adds features suited to its target servers:
- 1.20.1 Forge highlights:
cooldownScope(PEACE_ONLY,COMBAT_ONLY,BOTH,NONE), honest restriction-only HUD cooldown display (showInformationalCooldown),blockedDamageTypesPvP damage-type denylist,restoreModeAfterTag(on by default),teamConflictPolicy(PRESERVE_EXISTINGvs.OVERRIDE) with saved team ownership, spawn-time mode snapshots on projectiles and primed TNT across disconnects, compact19×19HUD badges,adminPermissionLevelconfig, and/combattoggle debug <player>. - 1.19.2 Forge highlights: Server-installable optional client support,
/ct//combat//peaceplayer toggle commands, ForgePermissionAPInodes for LuckPerms/FTB Ranks, anti-cheese gates (combat-logFREEZE_TAG/KILL/KEEP_BODY, blocked commands/pearls/portals/elytra/riptide while tagged, potion/fishing-hook/crystal/anchor/bed gates, pet/mount protection,clearTagOnDeath,respawnProtectionSeconds,toggleWarmupSeconds),spawnSafeRadius,enabledDimensions,/combattoggle regioncuboids,/combattoggle list,/combattoggle offline, and the draggable in-game HUD config GUI.
For full gameplay details, continue to PvP, Tags & Cooldowns.