Skip to content

What Hit Me? 2.0.0

Latest

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 the player's client never used, so the damage stayed in /whm, the totals and whathitme-client.cfg; on servers without the mod the click was an unknown command. Clicked /whm links now run on the client, and a click that still reaches a server with the mod is handed back to the client: [Mute] always edits the player's own list and takes effect at once (also in /whm stats). The server's stored list (players without the mod) no longer applies to the same player when they join with the mod.
  • [Copy Recap] (chat button and the death screen [Copy]) copied the button labels [Copy ID] [Mute] and [Copy Recap] along with the recap; so did {recap} in a copy template.
  • A rule that hides the attacker or the damage id still showed the hit's name made from them (Lich Bolt, Arrow) in the history, death screen panel, summary, recap, copy text and the hidden death message ("was killed by Lich Bolt"). The hit now shows ??? unless the rule sets a name. The causes of /whm stats follow the rules too (also @entity keys: the attacker of the death is remembered).
  • Keys that can never match because a part has no namespace (a stray a, @zombie) could be saved: personal mode and the pack editor saved a half-typed key on Enter / Esc / switching entries, and /whm mute took any text. They are refused now (/whm reload warns about them in packs) and such entries of ignoredDamageIds are left out when the file is read and dropped when the list is next written.
  • The display options of the client (every personal key and local rule parsed) were rebuilt for every chat line, command, server answer and death screen frame. They are now built once and kept until the config, the personal lists, the pack, the pack settings or the server info change.