Combat State 图标

Combat State

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.1.0+1.21.1-neoforge
本资源为搬运资源,原资源地址: https://modrinth.com/mod/combat-state
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: library utility

资源介绍

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

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Tinkers' Growing Addon

价格:0 墨喵币
下载量:0

查看详情
Auto GG mcpvp

价格:0 墨喵币
下载量:0

查看详情
Simplistic 3D Doors

价格:0 墨喵币
下载量:0

查看详情
Happy Birthday

价格:0 墨喵币
下载量:0

查看详情