Skip to content

Names, tips, ignore & hide ​

These are four of the rule actions. They go into then (and else when the rule has conditions).

Names: name ​

Replaces the name shown for a hit (panel, hover, chat, copy text, death message variable {name}).

json
{
  "rules": [
    { "match": "minecraft:outOfWorld", "then": { "name": "&5The Abyss" } },
    { "match": "mob:minecraft:zombie @item:minecraft:iron_sword", "then": { "name": "Armed Zombie" } },
    { "match": "*@twilightforest:lich", "then": { "name": "&dThe Lich" } },
    { "match": "draconicevolution:chaos", "then": { "name": "lang:mypack.damage.chaos" } }
  ]
}

Tips: hint ​

Replaces the automatic counter-measure tip.

json
{
  "rules": [
    { "match": "mob:minecraft:creeper", "then": { "hint": "Creepers hiss before exploding - sprint away!" } },
    { "match": "minecraft:lava @dim:minecraft:the_nether", "then": { "hint": "Carry Fire Resistance potions in the Nether." } },
    { "match": "mob:lycanitesmobs:*", "then": { "hint": "lang:mypack.hint.lycanites" } }
  ]
}

Without a rule tip the automatic tip is shown (enableAutoHints). To show no tip, hide it: "hide": ["tip"].

Values ​

You writePlayers see
Plain textThe text
&5The AbyssColored text. &0-&f colors, &l bold, &n underline, &r reset. The section sign works too.
Unknown {damage_name}Template variables are filled in
lang:mypack.hint.lavaThe translation of that key in the player's language (from a resource pack)
"" (empty)Not set: the next rule decides

Long texts wrap in the pack editor's fields, so you see the whole tip while you write it.

Translating names and tips ​

  1. Use lang: values in your rules:

    json
    { "match": "minecraft:lava", "then": { "hint": "lang:mypack.hint.lava" } }
  2. Add the keys to a resource pack, for example assets/mypack/lang/en_us.json and ja_jp.json:

    json
    { "mypack.hint.lava": "Carry a water bucket." }
    json
    { "mypack.hint.lava": "水バケツを持ち歩こう。" }

The translation happens on each player's client, so every player sees their own language.

Players without the mod

The server cannot read your resource pack, so players without the mod (English chat from the server) may see the raw key. If many players join without the mod, use plain text or requireClientMod.

Ignore ​

"ignore": true hides the damage for everyone, everywhere: it is not shown in the panel, history, summary, recap or [Copy Recap], and it is left out of the totals (Last 10s Total, {total}, {total_hits}), the entry count of /whm, the damage taken and the causes of /whm stats. A totem / heavy-hit alert triggered by an ignored hit is not sent.

If the killing blow itself is ignored, the panel and the summary show no killing blow: the vanilla death message takes its place (or "Unknown"), and the totals count only the other hits. When every hit is ignored, you see the normal "No damage recorded yet." without a total.

json
{
  "rules": [
    { "match": "minecraft:cactus", "then": { "ignore": true } },
    { "match": "minecraft:sweet_berry_bush", "then": { "ignore": true } },
    { "match": "somemod:*_tick", "then": { "ignore": true } }
  ]
}
  • "ignore": false is an explicit "not ignored": it stops later rules (for example a general "*" rule) from ignoring this damage.
  • Players can hide more for themselves with the [Mute] button or personal mode.
  • minDamageThreshold (default 0.05) drops tiny hits from being recorded at all.

Hide ​

hide lists parts that are shown as ??? and removed on the server before packets are built, also in /whm search, /whm inspect, the causes of /whm stats and the copy text.

FieldRemoves
damage_idThe damage id (sent as whathitme:hidden) and the damage name made from it (the hit shows ???); no [Copy ID] / [Mute], no ID line
attackerAttacker name, id, projectile, owner, distance and invisibility; melee ids (mob:...) and the damage name of a hit by an entity (Lich Bolt, Arrow) are hidden too, so the hit shows ???
modThe mod name
weaponWeapon, its id and enchantments
death_messageThe death message (replaced, see hidden death messages)
tipThe tip
propertiesDamage properties
environmentBlock / fluid / held items context
ownerOwner of pets, turrets, projectiles
distanceDistance to the attacker
positionDimension and coordinates (also in the copy text)

Give the branch a name to show something other than ??? (the name is shown even though the attacker or id is hidden).

While a branch that hides something applies, the record is enforced: players' personal names, tips and templates do not apply to it, so they cannot bring the information back. /whm test shows "Enforced" then.

Personal entries ​

Players can add their own names, tips and hidden damage on top of the pack's (personal mode of the pack editor, [Mute]). They are saved in the player's whathitme-client.cfg and win over rule names and tips, except for enforced records. Lock them in Settings & locks if your pack should look the same for everyone.

Large packs ​

There is no limit on the number of rules: rules are evaluated on the server and only the results are sent. A pack with 6000 rules was tested. One wildcard key can still replace hundreds of single ids and keeps the pack easier to maintain:

json
{
  "rules": [
    { "match": "*@twilightforest:lich", "then": { "hint": "Hide behind pillars and hit the shield bolts back." } },
    { "match": "@twilightforest:*", "then": { "hint": "Twilight Forest mob: check the Twilight Forest guide." } },
    { "match": "*acid*", "then": { "hint": "Acid: wear full armor or drink Fire Resistance." } }
  ]
}

Keep the special rules above the general ones: the first rule that sets a field wins.

Made by junjun1z. The mods are MIT licensed.