mcstats
Server-side stat tracker for Fabric — pushes vanilla and custom player stats to MySQL, SQLite, or any HTTP webhook. Built for quests, leaderboards, and external dashboards.
介绍
MC Stats Mod
A server-side Fabric mod that tracks player statistics and pushes them to an external database. Works with vanilla clients — players don’t install anything.
What it tracks
- All vanilla stats: blocks broken/placed, items used/crafted, kills, deaths, damage, movement, time played, etc.
- Natural-mined blocks: distinguishes blocks broken from world generation vs. blocks placed by players. Quest systems can’t be cheesed by placing and re-mining cobblestone.
- Custom stats: deaths by cause, enchantments performed, unique biomes visited, totem uses, sleep count, highest single hit.
Where it sends data
Pick one in the config:
| Backend | Use for |
|———|———|
| logging | Testing — prints to server console |
| sqlite | Single-server setup, zero config |
| mysql | Sharing data across multiple services |
| webhook | Custom dashboards, Discord bots, analytics — POSTs JSON to any URL |
Setup
- Drop the jar in your server’s
mods/folder (alongside Fabric API). - Start the server once — it generates
config/mcstats.json. - Edit the config, restart.
That’s it. Default config logs to console so you can verify it’s working before wiring up a database.
Why use this instead of a Discord-stats mod?
Most stat mods are coupled to one output (a specific Discord bot, a specific overlay). This one is a neutral push — your endpoint receives JSON, you decide what to do with it. Build a leaderboard site, a Grafana dashboard, a quest plugin, an MMO economy tracker — the mod
doesn’t care.
Links
- Full documentation, config reference, troubleshooting: GitHub
- Issues / feature requests: GitHub Issues
- License: CC0 1.0 — public domain.
常见问题
mcstats 支持哪些 Minecraft 版本?
mcstats 支持 Minecraft Java 版 26.1.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
mcstats 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分