
Heroic Death
This mod completely replaces the standard death messages in Minecraft with customizable text notifications that can be flexibly configured depending on the cause of the character's demise.
How the Mod Works
The program automatically scans JSON files in the configs/heroicdeath folder upon startup and loads all found death message settings. It's worth noting that the mod doesn't include pre-made notification templates by default.
If you need to update configuration files without reloading the game, use the /heroicdeath reload
command directly during gameplay.
Configuration Format
Each JSON file should be named according to the type of damage that caused the player's death. Here are some standard file names for various death causes in the vanilla version:
Environment:
- inFire.json - standing in fire
- lightningBolt.json - struck by lightning
- lava.json - contact with lava
- drown.json - drowning
- fall.json - fall damage
- outOfWorld.json - falling into the void or /kill command
Various Effects:
- wither.json - withering debuff
- anvil.json - crushed by anvil
- magic.json - splash potions of harming
- starve.json - starving
Inside each JSON file, there are two main sections: "normal" for regular deaths and "afk" for cases where the player has been inactive for more than 5 minutes. Both sections are arrays of string values where the %s symbol is replaced with the player's name in the final message.
Special Cases
generic.json - used when the system cannot determine the exact cause of death.
mob.json - has a more complex structure for handling deaths caused by mobs. In this file, the keys are registered entity names, and within each key there are subsections:
- normal - standard messages
- afk - for inactive players
- biggest - special messages when the main cause of death (e.g., fall damage) was actually triggered by another mob
In the "biggest" section, a second %s parameter is used to substitute the mob's name.
If the mod doesn't find a suitable JSON file for a specific death cause, it logs a warning and falls back to the standard vanilla message.
Operational Features
The mod operates exclusively on the server side, but a language file might be required on the client for proper message translation.
Important for version 1.12: Mixin installation is required for operation. You can use MixinBootstrap or other mods that include Mixin, such as VanillaFix or MalisisCore. This limitation doesn't apply to versions 1.16.2 and newer.