[Library] Combat Checker
Combat Checker is a data pack library that gives other datapacks scoreboard counters for the ticks elapsed since a player was last in combat.
What it does
The library tracks, in game ticks, how long ago a player was last hurt, how long ago a player attacked an entity, and how long ago a player was attacked. Three scoreboards hold these values, so datapack authors can read them with standard commands. Because scoreboard values are capped at 2147483647, a counter stops growing after about 3.4 years of game time.
The server must run the mod, while players may leave it out and still join. Files are published for Fabric, Forge and Quilt, plus a data pack build, for 1.18 – 1.20.4 and 13 release versions. The code is licensed under Creative Commons Attribution Non Commercial Share Alike 4.0, so it is not open source.
Key features
Ticks since hurt
A scoreboard counts the ticks since the player last received damage, for combat-timed effects.
Ticks since attack
A scoreboard counts the ticks since the player last attacked an entity.
Ticks since attacked
A scoreboard counts the ticks since the player last hurt another entity, giving a separate timer.
Compatibility
Latest build for each game version and loader.
1.20.x5 of 5 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does Combat Checker need to be on the client?
What happens when a counter reaches its limit?
In the catalog
[Library] Combat Checker is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from CodingLegend0100
Similar mods
What the author says
This library/utility creates 3 scoreboards for developers to use clgd.combat.Ticks_Since_Hurt - Tracks the number of ticks since the player recieved ANY damage clgd.combat.Ticks_Since_Attacked - Tracks the number of ticks since the player was hurt by an entity clgd.combat.Ticks_Since_Attack - Tracks the number of…
Official listing
- Modrinth page
- modrinth.com/mod/combat-checker
- Owner
- CodingLegend0100
- Published
- 2024-03-09
- Updated on Modrinth
- 2024-03-09
- Facts verified
- 2026-10-15