A Minecraft Fabric client-side mod that tracks and displays real-time combat statistics including combo hits, damage dealt, and damage received.
- Combo Counter: Tracks consecutive hits on entities with configurable reset time
- Hit Statistics: Monitors both hits dealt to enemies and hits received from them
- Damage Tracking: Records precise damage values for both offensive and defensive combat
- Real-time Display: Shows statistics in an elegant HUD above your hotbar
All aspects of the mod can be configured through the attackcounter.json config file:
- Toggle Display: Enable or disable the mod with a keybind (default: K)
- Combo Settings: Adjust the time window for maintaining combos
- Display Duration: Control how long statistics remain visible after combat
- Selective Information: Choose which stats to display (combo, hits, damage)
- Position Adjustment: Fine-tune HUD vertical positioning
- Fade Effects: Smooth fade-out animation when display timer expires
- Color-Coded: Easy-to-read color scheme (gold for combos, green for offense, red for defense)
- Non-Intrusive: Positioned above hotbar, similar to action bar text
- Performance Friendly: Lightweight client-side implementation
- Minecraft: Version 1.21.5 or compatible
- Fabric Loader: Version 0.16.10 or newer
- Fabric API: Version 0.128.2 or newer
- Java: Version 21 or newer
- Download and install Fabric Loader
- Download Fabric API for your Minecraft version
- Download the latest AttackCounter release
- Place both the Fabric API and AttackCounter
.jarfiles in your.minecraft/modsfolder - Launch Minecraft with the Fabric profile
- Toggle Mod: Press
K(default, rebindable in controls settings) - View Stats: Engage in combat to see your statistics displayed
The config file is located at .minecraft/config/attackcounter.json
{
"enabled": true,
"comboResetTime": 60,
"displayDuration": 100,
"showCombo": true,
"showHitsDealt": true,
"showHitsReceived": true,
"showDamageDealt": true,
"showDamageReceived": true,
"hudOffsetY": 0
}| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true | Master toggle for the mod |
comboResetTime |
integer | 60 | Ticks before combo resets (60 = 3 seconds) |
displayDuration |
integer | 100 | Ticks to show stats after combat (100 = 5 seconds) |
showCombo |
boolean | true | Display combo counter |
showHitsDealt |
boolean | true | Display hits dealt to enemies |
showHitsReceived |
boolean | true | Display hits received from enemies |
showDamageDealt |
boolean | true | Display damage dealt |
showDamageReceived |
boolean | true | Display damage received |
hudOffsetY |
integer | 0 | Vertical offset in pixels (positive = down, negative = up) |
Changes to the config file take effect after restarting Minecraft or reloading resources.
- JDK 21 or newer
- Git
# Clone the repository
git clone https://github.com/DraxonV1/AttackCounter.git
cd AttackCounter
# Build the mod (Linux/Mac)
./gradlew build
# Build the mod (Windows)
gradlew.bat buildThe built .jar file will be located in build/libs/
- Most client-side HUD mods
- Combat enhancement mods
- Performance optimization mods (Sodium, Lithium, etc.)
- Mods that heavily modify combat mechanics may affect accuracy
- Other combat stat trackers may display conflicting information
- Custom HUD mods with similar positioning might overlap
- Ensure the mod is enabled (press K to toggle)
- Verify Fabric API is installed
- Check that you're in survival/adventure mode
- Confirm you're dealing/receiving damage
- Check file permissions on the
.minecraft/configfolder - Ensure the config file is valid JSON
- Look for errors in the game log
- Try reducing
displayDurationto decrease render time - Disable unused statistics in the config
- Check for conflicts with other HUD-modifying mods
Contributions are welcome! Please feel free to submit pull requests or open issues on GitHub.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Follow existing code conventions
- Use meaningful variable names
- Comment complex logic
- Update documentation as needed
- Issues: GitHub Issues
- Homepage: attackcounter.mc.draxon.asia
- Source Code: GitHub Repository
This project is licensed under the MIT License. See the LICENSE file for details.
Author: DraxonV1
Frameworks & Libraries:
For detailed version history and changes, please refer to the releases page on GitHub.
Enjoy tracking your combat prowess! ⚔️