Combat State
No reviews yet
Shared combat-state tracker for Minecraft mods and modpacks.
Provides a framework or library for other mods to use.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers