promotional bannermobile promotional banner

Combat Toggle

Combat Toggle is a lightweight server-side PvP control mod that prevents accidental or unwanted player combat by requiring mutual opt-in before PvP damage is allowed. Combat only activates when both players are in Combat mode.

File Details

Combat Toggle 1.1.0 (Forge 1.20.1)

  • R
  • Mar 23, 2026
  • 30.70 KB
  • 149
  • 1.20.1
  • Forge

File Name

combattoggle-1.1.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:combat-toggle-1447882:7797982")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changelog

1.1.0

Bug Fixes

  • Cooldown reset command now clears both cooldown types. Previously, /combattoggle resetcooldown only reset the toggle-based cooldown (lastToggleMs) but left the PvP-triggered cooldown (lastPvpMs) active. Both are now reset to zero.
  • Admin set command no longer triggers unintended cooldowns. The command was unconditionally setting lastToggleMs, starting a toggle-based cooldown even when that cooldown type was disabled in config. It now respects the cooldownTriggersOnToggle setting.
  • Fixed HUD texture rendering. The texture dimension constants (450x101) did not match the actual texture files, causing incorrect UV sampling in the blit() call. Constants now match the real texture dimensions.
  • Removed unused allowClientButtonClick config option. This setting was defined but never referenced anywhere in the codebase.

Improvements

  • New GUI textures. Replaced the plain colored rectangles with Minecraft-style beveled GUI icons featuring stone-gray borders, tinted inner fills, and pixel-art icons (shield for Peace, crossed swords for Combat).
  • Compact HUD indicator. Reduced texture size from 120x27 to 51x19 for a less intrusive on-screen presence.
  • Cleaner toggle messages. Removed the noisy cooldown suffix from mode switch messages. Toggle feedback now simply reads "Mode set to: COMBAT" or "Mode set to: PEACE".