HomeJavaModsALL Death Messages
ALL Death Messages
ModsJava

ALL Death Messages

by Estecka · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 26.1–26.2⬇ Download for 1.21.11⬇ Download for 1.21.9–1.21.10⬇ Download for 1.21.5–1.21.8⬇ Download for 1.20.5–1.21.4⬇ Download for 1.20–1.20.4⬇ Download for 1.19.4
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
ALL Death Messages — screenshot 1ALL Death Messages — screenshot 2ALL Death Messages — screenshot 3ALL Death Messages — screenshot 4

All Death Messages

Overview

Enables death messages for several categories of mobs, and add colours to their names in death messages. Messages use the same texts as vanilla death messages.

For each category, separate kill and death gamerules are generated.

Custom mob categories must be defined in a config file. There is currently no config screen.

Message Triggers

Built-in categories based on mob properties. Custom categories are based on entity types.

A death message will appear if its victim belongs to an enabled death rule, or if any of its recent assailant has an enabled kill rule. A mob may belong to multiple categories; it will trigger a death message if any of them has its rule enabled.

Built-in categories

Custom categories

Custom categories are defined in .minecraft/config/alldeath-rules.json.

Each key in the root object is used as a category name. The associated value is an array of strings, representing the entity types that can trigger the gamerule.

This example is provided as the default config file:

{
	"utility": [
		"minecraft:allay",
		"minecraft:iron_golem",
		"minecraft:snow_golem",
		"minecraft:villager",
		"minecraft:wandering_trader"
	],
	"boss": [
		"minecraft:ender_dragon",
		"minecraft:elder_guardian",
		"minecraft:warden",
		"minecraft:wither"
	]
}

Name Styling

Mob names in death messages can have different colours and styling applied. Styles can be based on the same categories used in gamerules (both built-in and user-defined), or can be based on anonymous lists of entity types that don't correspond to any gamerule.

The way styles are applied is similar to CSS stylesheets, except in Json and in reverse order. When multiple styles match a mob, they will all be combined, and the topmost style takes priority in case of conflicts.

Styles are defined in the config file .minecraft/config/alldeath-styles.json, as an array of Json Object.
Each object may contain the following properties:

Styles
Colour Names

Styling Example

[
	{
		"rule": [
			"minecraft:wolf"
		],
		"color": "yellow",
		"italic": false
	},
	{
		"rule": "named",
		"italic": true,
		"underline": true
	}
]

Walkthrough

The topmost style defines an anonymous category for entities of type "wolf". The bottom one refers to the built-in "named" category.

If a wolf is given a name, both styles will be applied:
The "italic" property is taken from the topmost style; its names will not be italicized.
The topmost style does not define a "underline" property, so the lower property is used, and its name will be underlined.

Example

Commands

/alldeathmsg is the root for all subcommands. It requires a permision level of at least 2.

Related mods

Gamerule Menu

Makes the Gamerule menu accessible from singleplayer worlds

Preferred Gamerules

Lets you choose the default values of gamerules

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more