ModsFinder
LC

[Library] Combat Checker

by CodingLegend0100

Combat Checker is a data pack library that gives other datapacks scoreboard counters for the ticks elapsed since a player was last in combat.

FabricForgeQuiltServer required, client optionalCreative Commons Attribution Non Commercial Share Alike 4.01.18 – 1.20.4

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

  1. Ticks since hurt

    A scoreboard counts the ticks since the player last received damage, for combat-timed effects.

  2. Ticks since attack

    A scoreboard counts the ticks since the player last attacked an entity.

  3. 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.20.41.0.0+mod1.0.0+mod1.0.0+mod
1.20.31.0.0+mod1.0.0+mod1.0.0+mod
1.20.21.0.0+mod1.0.0+mod1.0.0+mod
1.20.11.0.0+mod1.0.0+mod1.0.0+mod
1.201.0.0+mod1.0.0+mod1.0.0+mod
1.19.x5 of 5 versions with builds
1.19.41.0.0+mod1.0.0+mod1.0.0+mod
1.19.31.0.0+mod1.0.0+mod1.0.0+mod
1.19.21.0.0+mod1.0.0+mod1.0.0+mod
1.19.11.0.0+mod1.0.0+mod1.0.0+mod
1.191.0.0+mod1.0.0+mod1.0.0+mod
1.18.x3 of 3 versions with builds
1.18.21.0.0+mod1.0.0+mod1.0.0+mod
1.18.11.0.0+mod1.0.0+mod1.0.0+mod
1.181.0.0+mod1.0.0+mod1.0.0+mod
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Questions

Does Combat Checker need to be on the client?

No. The server must run it, while players can join without installing it.

What happens when a counter reaches its limit?

Scoreboard values top out at 2147483647 ticks, roughly 3.4 years, so the counters stop increasing at that point.

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

All projects

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…
CodingLegend0100, on the Modrinth page

Official listing

Owner
CodingLegend0100
Published
2024-03-09
Updated on Modrinth
2024-03-09
Facts verified
2026-10-15

Tags