Skip to content

Configuration files ​

All files are in config/whathitme/. Both .cfg files use the Forge configuration format on every loader (also on Fabric) and are re-read by /whm reload.

FileForContents
whathitme-common.cfgServer owners, single playerWorld / server settings: display switches, tip switches, filters and tracking of the world. On a dedicated server they decide what the server builds and sends.
whathitme-client.cfgEach playerPersonal display switches, filters, showHints, the panel layout, and your own names, tips and hidden damage (renameMap, hintMap, ignoredDamageIds).
whathitme-client-templates.jsonEach playerPersonal templates. Created with commented examples.
pack/Pack makersPack folder: rules, templates, settings and locks.
.cache/The modcatalog_cache.json (scanned damage types, mobs, effects), stats_<uuid>.json (/whm stats, oncePerPlayer), changed-settings.json (settings you changed in game). Rebuilt automatically.
.backup/Server ownersA copy of each file before the pack editor changed it, one folder per change (<date>-<time>/, the 60 newest are kept), and legacy-<time>/ before a 1.3 conversion or deletion. Copy a file back to restore it by hand.

Pack values and locks

Every key below can also get a pack value (the default for players) and a lock in the pack folder or the Settings tab of the pack editor. A pack value applies while the player has not chosen a value themselves (in game or by editing the file); a locked value always applies.

The two-file rule

A display element is shown only when it is on in both files.

Display switches ​

Category display, in both files, all default true.

KeyShows
enableDeathScreenPanelThe recap panel on the death screen
enableRespawnChatSummaryThe death summary in chat after respawning (/whm togglechat)
enableTotemChatAlertA chat alert with a details link when a Totem of Undying (or another mod) saves you
enableHeavyHitSnapshotSnapshot and alert when one hit takes heavyHitThreshold of your max health
showTimestampHow long ago the damage happened
showDamageAmountFinal damage amount
showMitigationDetailsDamage before armor, mitigation %, absorption used, health after the hit
showSmartMergeHitCountHit counter of merged repeated damage (x12 hits)
showSourceModNameName of the mod that added the damage or the attacker
showDamagePropertiesProperties such as Fire, Magic, Bypasses Armor
showInternalDamageIdInternal damage id in the hover text
showAttackerNameAttacker name
showAttackerWeaponAttacker weapon and its enchantments
showAttackerDistanceDistance to the attacker
showAttackerInvisibilityBadge when the attacker was invisible
showEntityOwnerOwner of turrets, pets, summons and projectiles
showActionButtonsClickable [Copy ID], [Mute] and [Copy Recap] buttons
showToggleChatNoticeThe /whm togglechat notice at the end of the summary
showMaxHpPercentageDamage as a percentage of max health, e.g. (30% Max HP)
showEnvironmentContextFor damage without an attacker: block / fluid at your feet and body and the items in your hands
showReflectedBadge[Reflected / Thorns] badge
showArmorBreakEventsTimeline line when an armor piece breaks
includeEquipmentInCopy[Copy Recap] adds dimension, max health, armor and effects
includeCoordsInCopy[Copy Recap] adds the death coordinates (needs includeEquipmentInCopy)

Tip switches ​

KeyFileDefaultMeaning
enableAutoHintscommontrueAutomatic tips from the damage type and properties
enableCustomHintscommontrueTips from rules and personal tips
showHintsclienttrueShow tips at all (automatic and the pack's)

Filters ​

Category filters, in both files.

KeyDefaultMeaning
minDamageThreshold0.05Damage (health + absorption) below this is not recorded. Range 0 - 1000.
heavyHitThreshold0.8One hit taking at least this part of max health is a heavy hit (0.8 = 80 %). Range 0.05 - 100.
ignoredDamageIdsemptyClient file: your hidden damage (also left out of totals and counts), match keys (* wildcard, composite keys); personal mode, [Mute]. A server with the mod uses the first 8000 characters / 500 keys for /whm stats (longer lists warn once)
renameMapemptyClient file: your own names, key = Name or key = lang:translation.key; personal mode
hintMapemptyClient file: your own tips, key = Tip; personal mode

The three lists exist only in whathitme-client.cfg (names, tips and hidden damage for everyone are rules). The thresholds in whathitme-client.cfg only matter in client-only mode; otherwise the server records the damage.

List values in the file look like this:

S:renameMap <
    minecraft:outOfWorld = &5The Abyss
    mob:minecraft:zombie @item:minecraft:iron_sword = Armed Zombie
 >

Tracking ​

Category tracking, common file only.

KeyDefaultRangeMeaning
historySize505 - 500Records kept per player (ring buffer)
mergeWindowSeconds3.00 - 60Merge window for repeated damage (0 = off)
summarySeconds101 - 300Window of "Last Xs Total"
recapSeconds301 - 600How far back a death recap goes
maxSnapshots51 - 50Totem / heavy-hit snapshots per player
requireClientModfalseServer: refuse players whose client does not have What Hit Me? 2.x. See requireClientMod.

Layout ​

Category layout, client file only.

KeyDefaultMeaning
anchorPointCENTER_LEFTTOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_LEFT, CENTER_RIGHT
offsetX / offsetY4 / 0Offset from the anchor in GUI pixels, saved when you drag the panel (not when the modpack locks it)
scale0.85Panel scale (0.25 - 3)
backgroundOpacity0.750.0 - 1.0
maxVisibleLines8Lines before scrolling (1 - 40)
minimizedfalseSaved by the [-] button
chatHistoryLines15Lines shown by /whm history (1 - 100)

Cache folder ​

config/whathitme/.cache/ holds files the mod writes itself.

FileContents
catalog_cache.jsonDamage types, mobs, effects and scanned damage ids, with a SHA-256 of the sorted modid:version list
stats_<uuid>.json/whm stats data (deaths per cause and per attacker) and which oncePerPlayer triggers already ran
changed-settings.jsonKeys you set in game (settings screen, /whm config, dragging the panel); they keep your value over a pack value

WARNING

Deleting stats_<uuid>.json resets that player's statistics and lets oncePerPlayer triggers run again. The catalog cache is rebuilt automatically.

Changing settings ​

  • In game: the settings screen or /whm config <key> <value>.
  • In the file: edit it, then /whm reload (op).

Made by junjun1z. The mods are MIT licensed.