What Hit Me? 1.2.0 (Forge 26.2)
Curse Maven Snippet
What's new
New features for players and modpack makers on every supported version: Forge 1.7.10 - 26.3, Fabric 1.14 - 26.3, NeoForge 1.20.1 - 26.3 (63 files, each started and tested in game). Existing config files keep working.
Permission change: /whm rename, /whm sethint, /whm dump and /whm reload now need op (permission level 2), or single player with cheats enabled, also when run on the client. /whm inspect in single player now also needs cheats. Personal settings stay open to everyone through /whm config and the settings screen.
Added
- Pack folder
config/whathitme/pack/: every.jsonin it (any subfolder, alphabetical path order) is merged. Keys:renameMap,hintMap,defaultIgnoredDamageIds,lockedFeatures,deathTriggers. Created on first start with commented-out examples inhints/,renames/,ignored/,triggers/andcustom/. Priority:.cfgfiles > pack JSON > automatic tips. lockedFeatures: config keys that cannot be changed from the settings screen or/whm config, even in single player; shown greyed out in the settings screen.- Composite match keys for
renameMap,hintMap,ignoredDamageIdsanddeathTriggers: damage id,@entity_id/@mob:entity_id,@item:modid:item_id(attacker main hand) and@dim:dimension_idin any order (separated by spaces or&, or written directly before an@such as*@twilightforest:lich), with*/?wildcards. The most specific key wins: more conditions (a bare*does not count), then fewer wildcards. deathTriggers: server commands run with console permission when a death matches. Placeholders{player},{x},{y},{z},{damage}; optionsoncePerPlayerandcooldownSeconds./whm test <damage_id> [entity_id] [item_id] [dim_id]: shows the name, tip, matching death triggers (not run) and the chat preview of a dummy death./whm stats: total deaths, total damage taken and the top 5 causes. Saved to.cache/stats_<uuid>.jsonon death, logout and world save.- Damage id scanner: mod damage ids are listed before anyone takes that damage. On 1.7.10 - 1.19.3 the mod files are read on a background thread (first start, mod list change,
/whm reload) and the result is cached; on 1.19.4+ the game's damage type registry is read. Shown in/whm search(#scanned),/whm testcompletion and/whm dump(newsourcecolumn). - Smart catalog cache (
.cache/catalog_cache.json): damage types, mobs and effects are scanned once per mod list (SHA-256 of the sortedmodid:versionlist) and loaded from the cache while the mods stay the same. - Settings screen on every version and loader: Mods list on Forge and NeoForge, Mod Menu on Fabric when installed (optional, never required).
/whm configwithout arguments opens it. - Max HP share:
[-12.0 ❤ (30% Max HP)](showMaxHpPercentage). - Health-overhaul mods: a death with total health still above zero (First Aid style) is marked
[Localized / Vital Hit (Died with X.X ❤ total HP left)]. - Environment context for damage without an attacker: block / fluid at the feet and body, items in both hands, each with its mod (
showEnvironmentContext). [⚡ Reflected / Thorns]badge and tip for thorns and for damage from an entity the player hit within the last 50 ms (showReflectedBadge).- Armor break lines
[⚠ Broken: <armor>]in the timeline (showArmorBreakEvents). [Copy Recap]adds dimension, coordinates, max health, armor with enchantments and break state, and effects as Markdown (includeEquipmentInCopy,includeCoordsInCopy).renameMap/hintMapvalues that are plain translation keys are translated likelang:values.- Tip switches
enableAutoHints,enableCustomHints(common) andshowHints(client).
Changed
- No server tick handlers: time windows, merging, reflection and cooldowns use timestamps; checks after a hit are queued once on the server task queue.
- Every event hook, packet handler, scan and screen is guarded with try/catch and null checks; broken data from other mods falls back to "unknown".
showHintsAndTipsis replaced by the three tip switches. An oldshowHintsAndTips=falseturns all three off./whm dumpwriteswhathitme_dump.csvtoconfig/whathitme/.cache/(was the game or server folder)./whm reloadalso re-reads the pack folder, rescans the catalog and reports pack files with errors./whm config <key>on a server can be read by everyone; changing a common key needs op.- Features turned off on the server (common config or
lockedFeatures) are removed from the packets the server builds. Network protocol 2; 1.0 / 1.1 clients and servers keep working with 1.2. - The client fallback compares the local player's health and records
[Client Est.]entries only when it drops.
Fixed
- A death without any damage event before it (for example a mod calling
setHealth(0)) no longer leaves the recap empty: the killing blow is taken from the death event.
This mod has no additional files