▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Combat Persistence
Combat Persistence

Combat Persistence

Stops combat logging on Fabric servers. Quit mid-fight and a copy of you stays behind with your gear. Kill it and take the loot. Server-side only, players don't need to install anything.

Оцените первым
488
1

Combat Persistence

Someone is losing a fight, so they quit the game. On most servers that's the end of it: they're safe and they keep their stuff.

Not with this mod. If a player leaves while they're in combat, a copy of them stays behind for the rest of the combat timer, wearing their gear. Kill it and their items drop. When they log back in, they're dead.

It runs on the server only. Your players don't need to install anything.

!A player logs out mid-fight, their mannequin gets killed and drops the loot

How it works

  • Hitting another player puts you both in combat for 15 seconds. The countdown shows above the hotbar. You can change the length in the config.
  • If you log out during combat, an [OFFLINE] mannequin with your gear stays where you were standing.
  • If someone kills the mannequin, your items drop and you die the next time you join.
  • If nobody kills it before the timer runs out, it disappears and you get everything back when you log in.
  • Only PvP starts the timer. Mobs, fall damage and lava don't. Losing connection counts the same as quitting.

Here's the second case, where nobody kills the mannequin:

!The mannequin survives the timer and the player logs back in with all their gear

No teleporting out of a fight

While a player is in combat, /spawn, /home, /tp, /tpa, /warp and /back are blocked. You can add your own commands to the list.

!Trying /spawn and /tp during combat

Installing

  1. You need a Fabric server on Minecraft 26.3, with Fabric Loader 0.20.1 or newer and Java 25.
  2. Drop Combat Persistence and Fabric API into the mods folder.
  3. Start the server once. The config is created at config/combatpersistence.json.

On an older Minecraft version? Check the Versions tab. Each file only works on the versions listed for it.

Settings most people change

SettingDefaultWhat it does
combatTagDurationSeconds15How long combat lasts after the last hit.
blockedCommands/spawn, /home, /tp, /tpa, /warp, /backCommands you can't use in combat. Add aliases your server uses.
combatMessageIN COMBAT: %s s remainingThe countdown text.
npcNamePrefix[OFFLINE]Shown before the mannequin's name.
npcDeathBroadcast[PvP] %s combat logged and was slain!Chat message when a mannequin dies.
disableEnderChestsfalseTurns off ender chests for the whole server.

The full config list is on GitHub.

Offline-mode servers

If your server runs in offline mode, there's an optional login system built in: /register and /login, hashed passwords, a lockout after too many wrong attempts and a login timeout. Online-mode servers skip all of this because Mojang already checks accounts.

One warning: offline mode doesn't encrypt traffic, so passwords can be read by anyone who can see the connection. Use online mode if you can, and tell players not to reuse real passwords.

Questions

Do players need the mod? No, only the server does.

Does it work on Paper, Spigot, Forge or NeoForge? No, it's Fabric only.

What happens if the server restarts while a mannequin is standing there? The mannequin is gone, but the inventory is saved to disk, so the player gets it back the next time they join.

Does it work with other mods? Vanilla inventories, armor and the offhand are covered. I haven't tested mods that add their own inventory slots (backpacks, trinkets), so try it on a test world first.

Anything it can't handle? If the server crashes right after a mannequin dies, before the world saves, the dropped items can be lost. More detail is in the security notes.

Bugs and support

Found a bug? Open an issue with your Minecraft version, mod version and server log, and I'll take a look. Remove passwords and IP addresses from the log first.

If this saves your server some drama, following the project here helps, and so does a coffee on Ko-fi.

Партнёрский материал

Как поиграть с друзьями с модом Combat Persistence?

Мод Combat Persistence куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Combat Persistence будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки


Создатели

Детали

Лицензия:
Опубликован:7 месяцев назад
Обновлён:3 дня назад
Главная