Skip to content

Releases

What Hit Me? 2.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 06:23

A release for modpack makers: one kind of pack entry (rules with "conditions met" / "not met"), settings and locks in one screen, unlock conditions for settings and commands, pickers for every damage id, mob, item and dimension, and a new settings screen on every version. Same versions as before: 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).

Documentation with examples for everything below: the wiki (English and Japanese).

Breaking changes

  • New pack format. Everything is a rule: match, optional if / any / unless, and the actions name, hint, deathMessage, triggers, ignore, hide in then (conditions met) and else (not met). renameMap, hintMap, deathMessages, deathTriggers, defaultIgnoredDamageIds, lockedFeatures and 1.3-style rules are not read any more. The server log, a chat notice for operators and a red banner in /whm pack name the files; the banner can convert them to the 2.0 format or delete the old entries (with a backup).
  • Priority is the list order only. For every field the first rule from the top that sets it wins; fields can come from different rules. There is no "most specific key wins" any more, and only one set of triggers runs per death. An empty field falls through to the next rule ("hint": "" no longer removes the tip; use "hide": ["tip"]).
  • Only the same major version plays together. A 1.x client is disconnected by a 2.0 server with an update message, and a 2.0 client leaves a 1.x server with a message. Clients without the mod still join (unless requireClientMod is on). Network protocol 4.
  • Script API 2. addRename, addHint and addDeathMessage are gone; use addRule with then / else. New: setSetting, setSettingRule, addLock, disableVariable. KubeJS, CraftTweaker and MineTweaker 3 bindings updated.
  • renameMap, hintMap and ignoredDamageIds exist only in whathitme-client.cfg (your own entries), edited in personal mode. /whm rename, /whm sethint and /whm ignore are removed; the [Mute] button still works.
  • /whm pack is for operators only (players open personal mode from the settings screen); /whm server is not offered in single player.
  • /whm dump and hint_template.cfg are removed (the pack editor's pickers list every id).

Added

  • Settings tab in /whm pack: one row per setting with its pack value and a lock on the same row (locked = forced, unlocked = the default for players), grouped into Display, Tracking, Layout, Templates, Commands and Personal, each group with a lock-all toggle. Pack files: "settings", "locks", "disabledVariables".
  • Who may use each command: everyone, operators only, or nobody (operators neither) for history, last, snapshot, effects, stats, search, togglechat, template, config, and operators / nobody for inspect, test ("command.<name>": "all" | "op" | "none"); /whm pack and /whm reload always stay with operators. Personal locks for own names, tips, ignore list and templates, template output locks, and template variables that can be switched off (they render empty everywhere, also in rules).
  • Unlock conditions for display switches and commands: a value / lock when the conditions are met and one when not, decided per player by the server (quests, Game Stages, advancements, scores, tags, script:), with an optional chat message when they become met. Players see "unlocks with progress" / "unlocked by progress" in their settings screen.
  • Templates tab in /whm pack: the five outputs with their source, Edit (template editor with live preview), Reset and lock.
  • Rule editor: match key, conditions, actions in one column (no conditions) or two columns "Conditions met" / "Conditions not met", memo, "Rule on", and a preview "For this hit it becomes:" that names the rule each field comes from (as a player, assuming conditions).
  • Pickers for damage ids, mobs, items (every item of every mod) and dimensions (every level the server has, also ones nobody visited), each with search, an "All mods" filter and kind filters (damage: fire, magic, explosion, projectile, bypasses armor; mobs: boss, hostile, neutral, passive; items: weapon, armor, tool, food, block).
  • Text fields wrap and grow so long tips, death messages and template lines are fully visible (pack editor, /whm templates, settings screen); the list name of a rule follows the match key while you type.
  • New settings screen (/whm config, Mods list / Mod Menu / NeoForge config buttons) on every version with the look of the pack editor: groups, search, values saved at once, ↺ back to the modpack default, locked rows greyed out with "locked by the modpack", command and personal-feature status.
  • Personal mode of the pack editor: one entry per match key with your own name, tip and ignore.
  • /whm stats lists the attackers of each cause of death that is not melee (1. Arrow - 3 death(s) / by Skeleton - 2 / by Stray - 1). Ignore rules and the personal list apply per attacker; an attacker hidden by a rule shows by ???. Up to 20 attackers per cause are kept in stats_<uuid>.json; deaths counted before 2.0.0 still count for their cause.
  • Pack editor, personal mode and the match key builder show why a key can never match while you type, in red under the key: a part without namespace ("a" has no namespace (modid:) and never matches. Did you mean minecraft:a?) or a prefix without value (@item:). Before, such a key was only refused on save. In all 10 languages.
  • A personal ignore list that is too long for the server (more than 8000 characters or 500 keys) is cut at a whole key as before, and now the player gets a chat message (once, until the list fits again) and the log a line saying how many keys the server uses for /whm stats.
  • /whm help and Tab completion list only the commands the player can use.
  • /whm test and the preview show which rule each field comes from, "Ignored by a rule", and a line when rules match but none sets anything (conditions not met).
  • Pack file checks: unknown keys ("did you mean hint?"), wrong types, invalid setting values, conditions on settings that cannot take them, rules without match, else without conditions, non-number order, switched-off variables in use; reported by /whm reload, the server log and the pack editor.
  • "enabled": false and "memo" on single rules.
  • New commented samples pack/rules/, pack/settings/, pack/templates/, pack/custom/.
  • Translations of every new text in all 10 languages.

Fixed

  • A rule without match matched every damage (one typo could rename or hide everything); it is now skipped with a warning.
  • Misspelled rule keys ("tip", "command") were ignored without a word; they are reported with the key that was probably meant.
  • /help on Forge 1.7.10 - 1.12.2 showed an outdated /whm usage line (it still listed ignore, rename and sethint).
  • A death screen panel whose position the modpack locks (offsetX / offsetY) could still be dragged, and the position was written to the player's file before it snapped back. Now a locked panel cannot be dragged and nothing is saved; a locked minimized has no [-] / [+] button.
  • Ignored damage ([Mute], personal mode, server-side personal list of players without the mod, rules with "ignore": true) was only left out of the lists: Last 10s Total (history, summary, recap, death screen panel, [Copy Recap]), the entry count in the /whm header, the template variables {total} / {total_hits} / {timeline}, /whm stats (damage taken, top causes) and the killing blow still included it. It now counts nowhere. An ignored killing blow is not shown (the vanilla death message or "Unknown" takes its place), an ignored hit sends no totem / heavy-hit alert (the snapshot is still kept), and when every hit is ignored the normal empty state is shown without a total. Script listeners and the script API still see every record.
  • Pack editor, match key builder: pressing * (or another shortcut button) after picking a longer id from a list broke the text field (an error in the log, the field drawn wrongly). Text fields now keep the cursor, selection and scroll inside the text whenever it is replaced.
  • Match keys: a dimension wildcard without namespace (@dim:the_*, on 1.12.2 @dim:twilight* for dim:twilight_forest) matched nothing, although the same id without wildcard (@dim:the_nether) worked. Wildcards now also try the id without its namespace.
  • Players' own names and tips: *@*, @item:* and @dim:* counted like a bare *, so * could win over *@* for a hit by a mob. Only a damage id made of * is left out of "most specific key wins" now; @*, @item:* and @dim:* need an attacker, an item or a dimension and count.
  • Keys that can never match are reported by /whm reload, the log and the pack editor: mod:<modid> (there is no mod: condition; the warning names <modid>:*, mob:<modid>:* and @<modid>:*), a prefix without value (@item:), several damage ids in one key.
  • Pack editor: @ITEM: / @DIM: in capitals and @entity: in a key were read as attacker ids by the key builder, the preview and the "matches nothing" warning (the rules themselves were fine). The preview of a key like mob:*@minecraft:skel* now tests a skeleton's melee instead of the first mob of the list. The <mod>:* button also works with only the mod filter set.
  • Chat buttons and links ([Mute], [Copy ID], [Copy Recap], [Details], the recap link) on Forge 1.19 - 1.21.5 and NeoForge 1.20.2 - 1.21.5: these loaders send a clicked command to the server instead of the client command. In single player, on a LAN host and on servers with the mod, [Mute] said "Now hiding ..." but changed a server-side list...
Read more

What Hit Me? 1.3.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 00:00

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, /whm history 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 and lang: 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: personal whathitme-client-templates.json > pack "templates" > built-in; lock them with lockedFeatures (templates or templates.<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 (deathMessages in 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 (rules in 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. Fields match, 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), commands with oncePerPlayer / 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 "{player} was killed by ???" / "{player} 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).
  • deathTriggers accept if / any / unless and 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, default false): 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 reload while 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 to damageRecorded (rename, tip, badge, hide, cancel), death (tip, hide, extra summary lines), respawn and alert, read the last death, history, stats and /whm test results, and add renames, tips, rules, death messages and templates at run time. Rebuilt cleanly on /whm reload and 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 and whathitme-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 in config/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 (false skips the file), memo and entryMemos; 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 reload also 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 reload on 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).
  • /kill and 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.cfg are 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 reload and 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 /whm history or death recap whose records carry long tips or script values (for example historySize 200 with 7000-character tips), or /whm dump with a huge damage id list. 1.3 clients now get large replies in parts on every version, and /whm dump lists 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.

What Hit Me? 1.2.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 04:49

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 .json in it (any subfolder, alphabetical path order) is merged. Keys: renameMap, hintMap, defaultIgnoredDamageIds, lockedFeatures, deathTriggers. Created on first start with commented-out examples in hints/, renames/, ignored/, triggers/ and custom/. Priority: .cfg files > 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, ignoredDamageIds and deathTriggers: damage id, @entity_id / @mob:entity_id, @item:modid:item_id (attacker main hand) and @dim:dimension_id in 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}; options oncePerPlayer and cooldownSeconds.
  • /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>.json on 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 test completion and /whm dump (new source column).
  • Smart catalog cache (.cache/catalog_cache.json): damage types, mobs and effects are scanned once per mod list (SHA-256 of the sorted modid:version list) 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 config without 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 / hintMap values that are plain translation keys are translated like lang: values.
  • Tip switches enableAutoHints, enableCustomHints (common) and showHints (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".
  • showHintsAndTips is replaced by the three tip switches. An old showHintsAndTips=false turns all three off.
  • /whm dump writes whathitme_dump.csv to config/whathitme/.cache/ (was the game or server folder).
  • /whm reload also 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.

What Hit Me? 1.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 16:23

Now available for every major Minecraft version and loader: Forge 1.7.10 - 26.3, Fabric 1.14 - 26.3, NeoForge 1.20.1 - 26.3 (63 files). Same features, commands, config files and 10 languages everywhere. Every listed version was started and tested in game (single player; dedicated server with the mod, without the mod, and with a client without the mod for each loader family).

  • Fabric needs Fabric API (on 1.21 / 1.21.1: 0.116 or newer). Forge and NeoForge need nothing else.
  • Not included: Minecraft 1.13.x, 1.18 / 1.18.1, Forge 1.20.5 / 1.21.6 / 1.21.7 / 26.1 / 26.1.1, NeoForge 1.20.5 / 1.21.2 / 1.21.6.
  • The in-game settings screen is available on Forge 1.7.10 - 1.12.2; on other versions edit the files in config/whathitme/ and run /whm reload.

Fixes:

  • 1.12 / 1.12.1: the 1.12.2 file now also starts on these versions.

What Hit Me? 1.0.1

Choose a tag to compare

@github-actions github-actions released this 13 Nov 21:57

Bug fixes found by a full in-game test pass (single player, dedicated server with and without the mod, a client without the mod, two players, a 21-mod pack).

  • Death screen panel: dragging the header could stop at once on some setups; the drag now follows the mouse events and the position is saved when the button is released.
  • Death screen panel: at large GUI scales (3 / Auto) or in small windows it no longer covers the Respawn / Title screen buttons; it shrinks to fit (never below one screen pixel per font pixel).
  • Death recap, respawn summary and "Last Xs Total" only count damage taken since the previous death. Before, hits and killing blows from an earlier life within the last 30 seconds were included after quick repeated deaths.
  • The first hit after respawning was wrongly marked "Ignores I-Frames" when the previous death was less than half a second earlier.
  • /whm inspect (client and server side) no longer shows [Copy ID] / [Mute] buttons in the inspected player's history.
  • Client fallback: a death that follows another one within 1.5 seconds no longer reuses the previous killing blow.
  • Attackers whose mod builds the name itself (for example Lycanites Mobs "Ventoraptor Lvl 2", subspecies names) now show that name instead of the plain registry name.

Added:

  • In-game settings screen: Mods list > What Hit Me? > Config, with both files (Personal / Modpack - server). Changes are saved and applied on Done; in single player the server side is updated too.

What Hit Me? 1.0.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 17:12

First release.

  • Damage tracking for players: raw damage before armor, final damage, mitigation %, absorption used, health after the hit.
  • Normalized damage ids (mob:<entity> for attacks, <modid>:<damage type> for the rest) with properties: Bypasses Armor, Bypasses Magic, Magic, Fire, Explosion, Projectile, Through Shield, Ignores I-Frames, Bypasses Creative.
  • Attacker details: name, mod, distance, weapon and enchantments, invisibility, owner of turrets, pets and projectiles.
  • Smart merge of repeated damage from the same source (x12 hits).
  • Death screen panel: draggable, minimizable, scrollable, hover details, copy button.
  • Respawn chat summary with hover details, [Copy ID], [Mute] and a link to the full recap.
  • Totem of Undying, prevented-death and heavy-hit snapshots with chat alerts.
  • Commands: history, last, snapshot, effects, search, togglechat, ignore, rename, sethint, config, inspect, dump, reload, server, help, all with Tab completion.
  • /whm effects with milk curability; /whm search with #tag, @modid and text queries.
  • Two config files: whathitme-common.cfg (pack / server limits, synced from the server) and whathitme-client.cfg (personal). Every display element can be turned off.
  • renameMap and hintMap with & colors, * wildcards and lang: translation keys.
  • /whm dump writes whathitme_dump.csv and a ready-to-paste hint_template.cfg.
  • Works client-only (estimated [Client Est.] entries), server-only (English chat for players without the mod) or on both.
  • Automatic counter-measure tips by damage type.
  • Languages: English, Japanese, Simplified Chinese, Traditional Chinese, Korean, Russian, German, French, Spanish, Brazilian Portuguese.