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

Combat State

Shared combat-state tracker for Minecraft mods and modpacks.

Оцените первым
66
0

Combat State

Track when a player is still in combat, even after a mob switches targets.

Combat State is a small shared dependency for combat-aware Minecraft mods and modpacks. It gives other mods a clear server-side answer to: “is this player still in combat?”

Combat rules

A player enters combat with a mob when that mob targets the player.

The player stays in combat with that mob if the mob switches target during the fight. Target switching alone does not end combat.

The player leaves combat with that mob when either:

  • the mob has no target anymore, or
  • the mob is not currently targeting that player and the player is more than 64 blocks away.

What it provides

  • Server-side combat tracking for players.
  • A small API for dependent mods.
  • Configurable disengage distance.
  • Optional yellow indicator for mobs that still keep you in combat but are not currently targeting you.
  • Aggro Indicator compatibility: Aggro Indicator can keep showing the red current-target icon, while Combat State adds the yellow combat-memory icon.

API

Use CombatStateApi on the server:

CombatStateApi.isInCombat(player);
CombatStateApi.isActivelyTargeted(player);
CombatStateApi.getCombatMobIds(player);

Configuration

Config file:

config/combat_state-common.toml

Default values:

[combat]
disengageDistance = 64
syncIntervalTicks = 20

[client]
renderYellowIndicator = true

Requirements

  • Minecraft 1.21.1
  • NeoForge

Optional integration:

  • Aggro Indicator

Source and issues

  • Source: https://github.com/rinchanai/combat-state
  • Issues: https://github.com/rinchanai/combat-state/issues

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

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

Minecraft: Java Edition

1.21.x

Платформы

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

Клиент и сервер

Ссылки

Создатели

Детали

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