Tracked Stats
dStattrack tracks four categories, organised into three groups. An item belongs to exactly one group, decided by its material, and tracks every category in that group.
Groups, items & categories
Section titled βGroups, items & categoriesβ| Group | Items (default) | Categories tracked | Triggered by |
|---|---|---|---|
| kills | sword, bow, crossbow, trident, mace | Playerkills, Mobkills |
EntityDeathEvent |
| breakBlocks | pickaxe, axe, shovel, hoe, shears | Block |
BlockBreakEvent |
| fishing | fishing_rod | Fishing |
PlayerFishEvent (a fish is caught) |
Item matching is substring-based on the material name, so every variant is covered automatically β sword matches WOODEN_SWORD β¦ NETHERITE_SWORD, hoe matches DIAMOND_HOE, and so on. Configure the lists under stattrackItems and items in config.yml.
How counting works
Section titled βHow counting worksβWhen a player kills, breaks a block, or catches a fish, dStattrack looks at the item in their main hand:
- If itβs air or has no stattrack, nothing happens.
- Otherwise the matching counter is incremented by 1 and the itemβs lore is rebuilt.
So the player must be holding the stattracked item at the moment of the action for it to count.
Kills: players vs mobs
Section titled βKills: players vs mobsβOn EntityDeathEvent, dStattrack checks the dead entityβs type:
- Player β
Playerkillsis incremented. - Anything else β
Mobkillsis incremented.
This means new mobs added by Mojang are tracked with no config change β any non-player death counts as a mob kill.
Any block broken while holding a stattracked tool counts toward Block. New block types need no config. The event is ignoreCancelled, so a break cancelled by protection (WorldGuard, etc.) does not count.
Fishing
Section titled βFishingβOnly the CAUGHT_FISH state counts β reeling in nothing, or hooking an entity, does not increment Fishing.
Categories reference
Section titled βCategories referenceβ| Category | Group | Lore placeholder | Raw NBT tag |
|---|---|---|---|
Playerkills |
kills | %playerkills% |
Playerkills |
Mobkills |
kills | %mobkills% |
Mobkills |
Block |
breakBlocks | %block% |
Block |
Fishing |
fishing | %fishing% |
Fishing |
Category names are accepted case-insensitively by /dstattrack set (you can type mobkills or Mobkills).