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.
Back to Files

Combat Toggle 1.1.0 (Forge 1.20.1)

File namecombattoggle-1.1.0.jar
Uploader
OtectusOtectus
Uploaded
Mar 23, 2026
Downloads
233
Size
30.7 KB
Mod Loaders
Forge
File ID
7797982
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:combat-toggle-1447882:7797982")

Learn more about Curse Maven

What's new

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".

This mod has no related projects