Combat Toggle
Combat Toggle: Configuration
MC 1.19.2MC 1.20.1Forge~9 min read
On this page (7)
- 1.20.1 Forge configuration
- Server config ( combattoggle-server.toml ) — 1.20.1
- Client config ( combattoggle-client.toml ) — 1.20.1
- 1.19.2 Forge configuration
- Server config ( combattoggle-server.toml ) — 1.19.2
- Client config ( combattoggle-client.toml ) — 1.19.2
- Automatic validation & contradictory settings
Combat Toggle splits configuration cleanly into a per-world server config (gameplay rules, cooldowns, tagging, nameplates) and a per-client config (HUD display only).
| File | Location | Applies to | Reload timing |
|---|---|---|---|
Server config |
<world>/serverconfig/combattoggle-server.toml |
Gameplay rules, tags, cooldowns, teams |
Forge auto-reloads on file save. On 1.20.1, ConfigReloadHandler rebuilds the snapshot and schedules team reconciliation + client resync onto the server thread. On 1.19.2, ServerRules rebuilds and runs reload hooks (or run /combattoggle reload to force a full resync). |
Client config |
config/combattoggle-client.toml |
HUD visibility, position, timers, local UI cues |
Updates immediately on save (or via Mods → Combat Toggle → Config on 1.19.2). |
[!TIP] Modpack / multi-world defaults: To ship custom server settings for every newly created world, place a pre-configured
combattoggle-server.tomlinside your instance’sdefaultconfigs/folder. Forge copies files fromdefaultconfigs/into<world>/serverconfig/automatically when a new world generates.
1.20.1 Forge configuration
Server config (combattoggle-server.toml) — 1.20.1
[server]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
cooldownSeconds |
600 |
Integer ( 0–86400) |
Cooldown duration in seconds. 0 disables cooldowns entirely. |
combatTagSeconds |
30 |
Integer ( 0–3600) |
Combat tag duration in seconds after positive PvP damage. 0 disables tagging entirely. |
requireBothCombatEnabled |
true |
Boolean |
true: both attacker and victim must be in Combat mode. false: only the attacker’s mode matters (Peace mode does not protect victims). |
forceCombatWhileTagged |
true |
Boolean |
Forces tagged players into Combat mode and holds them there until the tag ends. Overrides allowToggleWhileTagged. |
allowToggleWhileTagged |
false |
Boolean |
Permits tagged players to toggle to Peace. Has no effect when forceCombatWhileTagged = true. |
restoreModeAfterTag |
true |
Boolean |
Returns a force-flipped player to their pre-force mode when the tag expires naturally, unless they or an admin changed mode deliberately during the tag. |
defaultCombatMode |
false |
Boolean |
Starting mode on first join ( false = Peace, true = Combat). Applied once per player via a persisted initialized flag. |
allowAdminBypassCooldown |
true |
Boolean |
Lets /combattoggle set ... true skip the cooldown gate. |
cooldownTriggersOnToggle |
false |
Boolean |
Starts a cooldown whenever a player switches mode (or admin /set succeeds). |
cooldownTriggersOnPvp |
true |
Boolean |
Starts a cooldown whenever a player deals or receives positive PvP damage. |
cooldownScope |
PEACE_ONLY |
Enum: PEACE_ONLY, COMBAT_ONLY, BOTH, NONE |
Which transition directions an active cooldown blocks ( PEACE_ONLY blocks Combat→Peace; COMBAT_ONLY blocks Peace→Combat; BOTH blocks both; NONE tracks without blocking or showing). |
blockedDamageTypes |
[] |
List of strings |
DamageType resource locations always blocked between players regardless of mode (e.g. ["minecraft:magic", "minecraft:trident"]). Invalid entries are logged and ignored on load. |
[admin]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
adminPermissionLevel |
2 |
Integer ( 0–4) |
Vanilla OP permission level required for admin subcommands ( get, set, resetcooldown, tag, untag, resync, reload, debug), evaluated live on each invocation. |
announceAdminActionsToTarget |
true |
Boolean |
Sends a chat message to the target player when an admin modifies their mode, tag, or cooldown. |
sendWelcomeMessage |
true |
Boolean |
Sends a one-off onboarding message to first-time players explaining their mode, V keybind, and /combattoggle status. |
playToggleSounds |
true |
Boolean |
Plays confirmation sounds ( EXPERIENCE_ORB_PICKUP / VILLAGER_NO) for accepted and denied toggles. |
[nameplate]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
useScoreboardTeams |
true |
Boolean |
Enables vanilla scoreboard team indicators for player nameplates. |
teamConflictPolicy |
PRESERVE_EXISTING |
Enum: PRESERVE_EXISTING, OVERRIDE |
Behaviour when a player already belongs to a foreign scoreboard team: PRESERVE_EXISTING leaves the external team intact and skips the Combat Toggle nameplate; OVERRIDE moves the player onto the Combat Toggle team. |
useEmojiPrefixes |
true |
Boolean |
Adds the configured prefix before player names via scoreboard teams. |
combatEmoji |
"⚔ " |
String |
Prefix for Combat-mode players. Use BMP Unicode ( U+0000–U+FFFF) only. |
peaceEmoji |
"☕ " |
String |
Prefix for Peace-mode players. Use BMP Unicode ( U+0000–U+FFFF) only. |
useNameplateColors |
true |
Boolean |
Colours nameplates red for Combat and blue for Peace. |
combatTeamName |
"ct_combat" |
String |
Scoreboard team name for Combat players ( 1–16 chars, [A-Za-z0-9_.-] only, must differ from peaceTeamName). |
peaceTeamName |
"ct_peace" |
String |
Scoreboard team name for Peace players ( 1–16 chars, [A-Za-z0-9_.-] only, must differ from combatTeamName). |
Client config (combattoggle-client.toml) — 1.20.1
[client]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
showHud |
true |
Boolean |
Master switch for the on-screen mode badge. |
compactHud |
false |
Boolean |
Uses the small 19×19 icon-only badge instead of the 51×19 labelled badge. |
showHudTimers |
true |
Boolean |
Displays active combat-tag and cooldown countdowns beneath the badge. |
showInformationalCooldown |
false |
Boolean |
Also renders cooldowns that do not block your next toggle (e.g. while in Peace mode under PEACE_ONLY). |
hudAnchor |
CENTER |
Enum: LEFT, CENTER, RIGHT |
Horizontal alignment anchor on screen. |
hudXOffset |
0 |
Integer ( -1024–1024) |
Horizontal offset in pixels from the anchor (clamped to screen bounds). |
hudYOffset |
6 |
Integer ( -1024–1024) |
Vertical offset in pixels from the top of the screen (clamped to screen bounds). |
hudOpacityPercent |
100 |
Integer ( 10–100) |
Badge opacity percentage. |
1.19.2 Forge configuration
Server config (combattoggle-server.toml) — 1.19.2
[server]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
cooldownSeconds |
600 |
Integer ( 0–86400) |
Cooldown duration in seconds ( 0 disables). |
combatTagSeconds |
30 |
Integer ( 0–3600) |
Base combat-tag duration in seconds ( 0 disables). |
requireBothCombatEnabled |
true |
Boolean |
true: both attacker and victim must be in Combat. false: only attacker matters. |
forceCombatWhileTagged |
true |
Boolean |
Forces tagged players into Combat mode. Overrides allowToggleWhileTagged. |
allowToggleWhileTagged |
false |
Boolean |
Lets tagged players switch to Peace (ignored while forceCombatWhileTagged = true). |
allowAdminBypassCooldown |
true |
Boolean |
Lets /combattoggle set ... true bypass cooldowns. |
cooldownTriggersOnToggle |
false |
Boolean |
Starts a cooldown when a player changes mode. |
cooldownTriggersOnPvp |
true |
Boolean |
Starts a cooldown on PvP damage. |
cooldownAppliesToPeaceOnly |
true |
Boolean |
true: cooldown blocks only Combat → Peace. false: blocks both directions. |
combatTagSecondsAttacker |
-1 |
Integer ( -1–3600) |
Tag duration for attackers ( -1 inherits combatTagSeconds). |
combatTagSecondsVictim |
-1 |
Integer ( -1–3600) |
Tag duration for victims ( -1 inherits combatTagSeconds). |
cooldownAppliesToVictim |
true |
Boolean |
Whether being attacked also starts the victim’s PvP cooldown. |
tagVictimOnlyIfInCombat |
true |
Boolean |
When requireBothCombatEnabled = false, prevents tagging/forcing/cooling down Peace-mode victims. |
allowAdminBypassTag |
true |
Boolean |
Lets /combattoggle set ... true bypass the combat-tag guard. |
toggleCommandRateLimitMs |
500 |
Integer ( 0–60000) |
Minimum milliseconds between toggle requests across keybinds, commands, and API ( 0 disables). |
toggleWarmupSeconds |
0 |
Integer ( 0–300) |
Delay in seconds before a requested mode switch applies; taking/dealing damage cancels it ( 0 = instant). |
defaultMode |
PEACE |
Enum: PEACE, COMBAT |
Starting mode on first ever join. |
resetModeOnJoin |
false |
Boolean |
Resets players to defaultMode on every login. |
auditLog |
true |
Boolean |
Logs one [audit] INFO line for each state mutation (actor, target, origin, change). |
[cheese]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
combatLogAction |
FREEZE_TAG |
Enum: NONE, FREEZE_TAG, KILL, KEEP_BODY |
Policy when a tagged player disconnects ( FREEZE_TAG pauses tag offline; KILL kills on logout; KEEP_BODY spawns a lootable zombie; NONE lets tag tick offline). |
freezeCooldownOffline |
false |
Boolean |
Also pauses toggle/PvP cooldowns while offline. |
announceCombatLog |
true |
Boolean |
Notifies online tagged players when someone combat-logs. |
combatLogBodyHealthMultiplier |
1.0 |
Double ( 0.1–10.0) |
KEEP_BODY only: stand-in health multiplier relative to player health at logout. |
combatLogBodyDurationSeconds |
-1 |
Integer ( -1–3600) |
KEEP_BODY only: stand-in lifetime in seconds (-1 inherits remaining tag). |
clearTagOnDeath |
true |
Boolean |
Clears active combat tags when a player dies so they cannot be spawn-camped. |
respawnProtectionSeconds |
10 |
Integer ( 0–300) |
Post-death PvP immunity window ( 0 disables). Ends early if the protected player attacks someone. |
revertModeOnTagExpiry |
false |
Boolean |
Restores the pre-tag mode when a tag expires naturally online. |
taggedBlockedCommands |
["home", "tp", "tpa", "tpaccept", "spawn", "warp", "rtp", "back"] |
List of strings |
Root command names (case-insensitive) blocked while combat-tagged. |
taggedBlockEnderTeleport |
true |
Boolean |
Cancels Ender Pearl and Chorus Fruit teleports while tagged. |
taggedBlockPortals |
true |
Boolean |
Cancels dimension travel while tagged. |
taggedBlockElytra |
false |
Boolean |
Stops Elytra flight ( stopFallFlying) while tagged. |
taggedBlockRiptide |
false |
Boolean |
Cancels Riptide trident right-click use while tagged (best-effort). |
gatePotionsAndHooks |
true |
Boolean |
Gates harmful splash/lingering potions, area-effect clouds, and fishing-rod hooks through PvP checks. |
blockUnattributedExplosionsNearPeace |
false |
Boolean |
Removes Peace players from unattributed explosions (e.g. creepers, mining blasts). |
tagOnAttemptedHit |
true |
Boolean |
Tags on allowed attack attempts in LivingAttackEvent, preventing shield-blocked fights from staying untagged. |
protectPeacePlayersPets |
true |
Boolean |
Protects OwnableEntity pets and ridden mounts by resolving PvP checks to their online owner/rider. |
[zoning]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
enabledDimensions |
[] |
List of strings |
Dimension IDs where Combat Toggle runs (e.g. ["minecraft:overworld"]). Empty list = all dimensions. |
spawnSafeRadius |
0 |
Integer ( 0–10000) |
Horizontal radius in blocks around Overworld spawn treated as Peace for everyone ( 0 = off). |
[feedback]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
useActionBarTimers |
true |
Boolean |
Shows live combat-tag and warm-up countdowns on the action bar (works on vanilla clients). |
useTitleOnModeChange |
false |
Boolean |
Flashes a COMBAT / PEACE title and subtitle on mode change. |
useBossBarTimer |
false |
Boolean |
Displays a red depleting boss bar while tagged. |
notifyVictimOnBlockedPvp |
false |
Boolean |
Sends a throttled notice to the victim when a blocked attack targets them. |
[client_notice]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
clientModNotice |
ONCE |
Enum: OFF, ONCE, EVERY_JOIN |
Tells clients without Combat Toggle installed about the optional client mod. |
clientModNoticeDelayTicks |
100 |
Integer ( 0–12000) |
Post-join delay in ticks ( 20 ticks = 1s) before sending the notice. |
clientModDownloadUrl |
"https://www.curseforge.com/minecraft/mc-mods/combat-toggle" |
String |
Clickable http(s) download link included in the notice (blank omits the link). |
[nameplate]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
useEmojiPrefixes |
true |
Boolean |
Adds prefix text before player names via scoreboard teams. |
combatEmoji |
"⚔ " |
String |
Combat prefix (BMP Unicode only, max 8 characters). |
peaceEmoji |
"☕ " |
String |
Peace prefix (BMP Unicode only, max 8 characters). |
useNameplateColors |
true |
Boolean |
Colours Combat red and Peace blue. |
useScoreboardTeams |
true |
Boolean |
Enables scoreboard team nameplates. |
combatTeamName |
"ct_combat" |
String |
Combat scoreboard team name (max 16 chars, no whitespace). |
peaceTeamName |
"ct_peace" |
String |
Peace scoreboard team name (max 16 chars, no whitespace). |
groupTabListByMode |
false |
Boolean |
Groups Combat players above Peace players in the tab list by ensuring combatTeamName sorts first. |
Client config (combattoggle-client.toml) — 1.19.2
[client]
| Key | Default | Type / Range | Effect |
|---|---|---|---|
hudEnabled |
true |
Boolean |
Master switch for the HUD overlay. |
hudShowInCombatMode |
true |
Boolean |
Displays the HUD while in Combat mode. |
hudShowInPeaceMode |
true |
Boolean |
Displays the HUD while in Peace mode. |
hudAnchor |
TOP_CENTER |
Enum: TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT, CENTER, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, CUSTOM |
Screen anchor for the HUD ( CUSTOM uses absolute coordinates). |
hudOffsetX |
0 |
Integer ( -8192–8192) |
Inward pixel offset from anchor (or absolute X if CUSTOM). |
hudOffsetY |
6 |
Integer ( -8192–8192) |
Inward pixel offset from anchor (or absolute Y if CUSTOM). |
hudScale |
1.0 |
Double ( 0.5–3.0) |
HUD badge scale factor. |
hudShowTimers |
true |
Boolean |
Renders tag, cooldown, and warm-up timers below the indicator. |
hudTextOnly |
false |
Boolean |
Hides the 51×19 icon and renders mode text + timers only. |
hudTagColor |
"FF5555" |
String |
Hex colour ( RRGGBB or AARRGGBB) for the tag timer. |
hudCooldownColor |
"FFAA00" |
String |
Hex colour ( RRGGBB or AARRGGBB) for the cooldown timer. |
hudLowTimeFlash |
true |
Boolean |
Flashes the tag timer white every 250 ms during its final 5 seconds. |
hudSoundOnModeChange |
false |
Boolean |
Plays a client UI click when your mode changes. |
hudSoundOnTagExpiry |
false |
Boolean |
Plays a client chime when your tag expires. |
Automatic validation & contradictory settings
Both ports validate configuration on load/reload and log warnings stating the effective behaviour when settings conflict:
forceCombatWhileTagged = true+allowToggleWhileTagged = true→ Force wins; tagged players cannot reach Peace.forceCombatWhileTagged = true+combatTagSeconds = 0(1.20.1) → No tag ever applies, so no player is ever forced.cooldownScope = NONEwithcooldownTriggers*enabled (1.20.1) → Cooldowns are tracked but never block or show.requireBothCombatEnabled = false+tagVictimOnlyIfInCombat = false(1.19.2) → Warns that a single attacker can conscript Peace players into Combat and cooldown lockouts.combatLogAction = NONE(1.19.2) → Warns that disconnecting lets players escape combat tags.- Identical or invalid
combatTeamName/peaceTeamName→ Disables nameplate teams cleanly instead of sending broken team packets.