Modpack makers: overview
Why include What Hit Me?
- Fewer "what killed me?" questions in your Discord and issue tracker. Players see the attacker, its mod and the damage type themselves.
- Guide players through your pack's dangers with your own names and tips, matched by damage type, attacker, weapon and dimension.
- Keep secrets until players earn them: show
???and no tip until the boss quest is done, unlock armor details or commands with progress. - Safe to add late: no dependencies, no world data, no blocks or items, nothing in chat on join. Remove it at any time.
- MIT license: include it in any pack without asking.
What you can customize
| Goal | Tool | Page |
|---|---|---|
| Give damage a better name, write your own tips | rule actions name, hint | Names, tips, ignore & hide |
| Hide noise (cactus, modded ticks) | rule action ignore | Names, tips, ignore & hide |
| Replace vanilla death messages | rule action deathMessage | Death messages |
| Run commands when someone dies | rule action triggers | Triggers |
| Keep things secret until the player progresses | rule conditions, else, hide | Rules, Conditions |
| Match by attacker, weapon, dimension | match keys | Match keys |
| Set defaults and lock settings | settings | Settings & locks |
| Lock commands and personal features | locks | Settings & locks |
| Unlock settings and commands with progress | unlock conditions | Settings & locks |
| Rewrite the panel, hover, summary, alerts, copy text | templates | Templates |
| Switch template variables off | disabledVariables | Settings & locks |
| Require the mod on every client | requireClientMod | Versions & requireClientMod |
| Use quest progress (FTB Quests, Better Questing, Heracles, Game Stages) | conditions | Quest mods |
| Drive it from KubeJS / CraftTweaker / MineTweaker | script API 2 | Script integration |
| Find every damage id of your pack | scanner, pickers | Scanner & /whm test |
| Edit all of this in game | /whm pack | Pack editor |
Quick start (5 minutes)
Start the game (or server) once with the mod. It creates
config/whathitme/pack/with commented examples.Die to something in your pack, hover the killing blow and click
[Copy ID]. Or open/whm pack, press + Add and Pick... to browse every damage id, mob, item and dimension.Create
config/whathitme/pack/mypack.json(or press Done in the pack editor):json{ "rules": [ { "match": "minecraft:outOfWorld", "then": { "name": "&5The Abyss" } }, { "match": "mob:minecraft:creeper", "then": { "hint": "Creepers hiss before exploding - sprint away!" } } ] }Run
/whm reload(op). It reports how many pack files were read and any problem. The pack editor reloads by itself.Check the result without dying:
/whm test mob:minecraft:creeper, or the preview under the rule in the pack editor.
Where values come from
Rules (pack files, then scripts): first rule from the top per field
| personal names, tips, hidden damage of the player win (unless locked or the rule hides fields)
Templates: personal > pack > built-in (unless the output is locked)
Settings: locked pack value > the player's own value > pack value > built-in default- Display switches: an element is shown only when it is on in both the player's file and the world / server file.
- Automatic tips are shown when no rule sets a tip and the tip is not hidden.
Shipping it in a modpack
Ship your config/whathitme/pack/ folder in the client export and the server pack. Do not ship the player files whathitme-client.cfg and whathitme-client-templates.json, or pack updates overwrite your players' own choices. The full list, the export steps and what locks do after release: Shipping your pack.
Translations
Every rule name, tip, death message and template line can be a translation key: lang:mypack.hint.lava. Add the keys to a resource pack (or your pack's KubeJS / resource loader assets) and every player sees their language.
