What Hit Me? 1.3.0 (Fabric 26.2)
Curse Maven Snippet
What's new
A release for modpack makers: rewrite every text the mod shows, replace death messages, keep bosses secret until the player has progressed, drive everything from quests and scripts, and edit the whole pack setup in game. Same versions as 1.2.0: 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, also on dedicated servers with and without the mod on the client). Nothing changes until you use the new features: without templates, rules or death messages every output looks exactly like 1.2.0, and existing config and pack files keep working.
Documentation with examples for everything below: the wiki (English and Japanese).
Added
- Templates for the six places the mod writes text: death screen hover details, death screen panel line,
/whmhistory line and its hover (they share the first two), respawn chat summary, totem / heavy-hit alerts and the[Copy]recap (with the equipment block).{variable}placeholders (40+ variables for damage, damage type, attacker, weapon, position, time, badges, tip, totals, links, equipment;mob_*aliases),{var|fallback},{damage:2}decimals,&colors andlang:lines. A line whose placeholders are all empty is dropped. Variables follow the display switches, so a template never shows what the server turned off. Sources: personalwhathitme-client-templates.json> pack"templates"> built-in; lock them withlockedFeatures(templatesortemplates.<output>). - Template editor with a live preview drawn by the real output code:
/whm template, or Templates... in the settings screen. Clickable variable list with descriptions, unknown variables in red, preview with your latest death or a sample death. Save (personal), Save to pack (single player with cheats), Reset./whm template preview <output>and/whm template reset [output]. - Custom death messages (
deathMessagesin pack files, off by default): match key -> message template, for example"*@twilightforest:lich": "{player} was outsmarted by the Lich". Fabric servers replace the message for everyone; Forge / NeoForge servers for players with the mod (the client swaps the chat line and the death screen text), the server log shows the custom text.lang:keys are translated per player. - Progression rules (
rulesin pack files): change the name and tip, hide fields and run commands depending on the player's progress, for example???and no tip until the boss quest is done. Fieldsmatch,if(all) /any(one of) /unless(none),name,hint,hide(damage_id,attacker,mod,weapon,death_message,tip,properties,environment,owner,distance,position),enforce(overrides personal renames, tips and templates; on by default when something is hidden),commandswithoncePerPlayer/cooldownSeconds. The first matching rule wins. The server decides and removes hidden data before anything is sent; completing a quest reveals old entries too. A hidden death message becomes " was killed by ???" / " died". - Conditions for rules and death triggers (
!negates):advancement:(1.12+),tag:(1.9+),score:<objective><op><n>,stage:(Game Stages),ftbquests:(FTB Quests),bq:(Better Questing, also the GTNH fork and Better Questing Unofficial),heracles:(Heracles / Odyssey Quests),script:(scripts). Quest mods are optional and read by reflection; each one is tested on every version and loader it exists for (matrix in the wiki). deathTriggersacceptif/any/unlessand every template variable as a placeholder./whm test ... --as <player> --assume <condition>: preview rules, hidden fields and the death message with a player's real progress, or pretend a condition is met.requireClientMod(common config, defaultfalse): the server refuses clients without What Hit Me? with a readable message. Forge / NeoForge servers whose rules hide death messages warn on start and on/whm reloadwhile it is off, because players without the mod still see the vanilla message there.- Script integration for KubeJS, CraftTweaker and MineTweaker 3, on every version and loader where these script mods exist: register
script:conditions and{script:}template variables, listen todamageRecorded(rename, tip, badge, hide, cancel),death(tip, hide, extra summary lines),respawnandalert, read the last death, history, stats and/whm testresults, and add renames, tips, rules, death messages and templates at run time. Rebuilt cleanly on/whm reloadand the script mod's reload. Other mods can use the same Java API (io.github.junjun1z.whathitme.api). - In-game pack editor
/whm pack(and Pack editor... in the settings screen) for everything in the pack folder andwhathitme-common.cfg: renames, tips, rules, death messages, templates, death triggers, ignored ids, locked features and the server settings. For single player with cheats and operators. The server checks every edit, writes the JSON, reloads at once and updates every player. Each JSON file is a category (sub-folders are groups) with order, on / off switch and memo; entries have memos too. Match key builder with searchable damage id and mob lists, condition picker with the advancements, scores, tags, quests, stages and script conditions the server knows, live preview "as player / assuming conditions", inline errors, a notice when someone else edits. Backups inconfig/whathitme/.backup/and 30 undo steps. - Personal mode of the pack editor (
/whm pack personal, or the settings button without op): your own renames, tips and ignored ids as searchable lists instead of one-line comma lists. - Pack files may carry
order(load order),enabled(falseskips the file),memoandentryMemos; written by the pack editor, optional by hand. - New commented samples
pack/templates/,pack/deathmessages/,pack/rules/(only added when those folders do not exist). /whm reloadalso reports unknown template variables, rule and condition problems, missing quest / script mods and what scripts registered.
Changed
- Network protocol 3. 1.0 - 1.2 clients and servers keep working with 1.3 (they get the 1.2 data, with hidden fields already removed).
Fixed
- Forge 1.7.10 - 1.12.1: a heal in the same tick as a hit (food regeneration, Regeneration, any heal) was subtracted from that hit, so hits were recorded too low and a 1 ❤ hit such as a burning tick could be lost (merged lines showed x2 instead of x3).
- Pack folder: one file with extremely deep nesting no longer stops the whole pack folder from loading (that file is skipped with an error). Sections of the wrong type (for example
"hintMap": 5) and files more than 8 sub-folders deep are reported instead of being ignored silently. - Config files saved in another encoding than UTF-8 (for example by Notepad as ANSI with a non-English rename) were reset to the defaults and overwritten (1.13+). They are now read with the system encoding, and a file that cannot be read is never overwritten.
- Decimal settings no longer accept
NaN. /whm reloadon a client with the mod now shows how many pack files were read and which files have errors, as documented (it showed only the warnings)./killand other infinite hits showed(2147483647% Max HP); now(∞% Max HP).- Forge / NeoForge 1.13+ with First Aid: a big hit that First Aid spread over the body parts was announced as "Lethal damage was prevented"; it is a heavy hit now. A cancelled death and a used totem are still reported.
- Single player: pack files and
whathitme-common.cfgare read again when a world is opened, so edits made while the game runs apply to the next world. - Death screen panel: the "Last Xs total" line wraps instead of running past the panel in long translations (German).
- Players with the mod got at most 1000 entries of each list from the server (renames, tips, ignored ids, templates, death messages and the others), so later renames and tips were missing on their screen. 1.3 clients now get every entry (sent in parts); 1.2 clients still get the first 1000 of each list, and
/whm reloadand the server log warn about longer lists and suggest wildcard keys. - A very large reply disconnected the player (packet limit 1 MiB, 2 MiB on Forge 1.7.10): a long
/whmhistory or death recap whose records carry long tips or script values (for examplehistorySize200 with 7000-character tips), or/whm dumpwith a huge damage id list. 1.3 clients now get large replies in parts on every version, and/whm dumplists every damage id (it stopped at 4000). 1.2 clients get the newest records or first entries that fit in one packet, with a note on how many were left out.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include