搜索历史
清空
暂无搜索历史
论坛热搜
1
乌托邦探险之旅3.2
热
3
上古老物 冒险者传说 by WhiteSword
新
5
洛心斗罗-福利|公会据点战|武魂||抽奖|最终版
2
Jenny — 有趣的模拟女友模组|珍妮模组
热
4
幻虚斗罗V1.5
6
水星迫降——在未知的世界中挣扎
登陆 注册 QQ登陆
快捷导航
查看: 159|回复: 0

All Death Messages (全部死亡信息)-MOD模组

[复制链接]

5021

主题

60

回帖

1万

积分

龙❁妻

Rank: 8Rank: 8

经验
10302 EP
金粒
5181 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 16:29:24 | 显示全部楼层 |阅读模式
All Death Messages (全部死亡信息)Github |相关wiki |源站链接支持: fabricEnables death messages for any entity you want.

---

概述

启用了对任何您想要的实体的死亡消息。

可以在配置文件中定义特定类别的生物,并且消息中的它们的名称可以使用不同的颜色和效果进行样式化。

对于每个类别,都会生成单独的 `kill` 和 `death` 游戏规则。

消息触发器

内置了几个类别,并且可以根据实体类型在配置中创建自定义类别。

生物可能属于多个类别;如果其中至少一个启用了其规则,它将触发死亡消息。

内置类别

- `all`: 适用于所有内容。当启用时,这实际上会覆盖所有其他类别。

- `named`: 给定自定义名称的生物,包括所有玩家。

- `persistent`: 不会自然消失的生物。

- `ephemeral`: `persistent` 的否定。

- `hostile`: 游戏代码中被视为敌对的生物。

- `passive`: 游戏代码中被视为被动的生物。这不是 `hostile` 的否定;一些生物既不是敌对也不是被动的。

自定义类别

自定义类别在 `.minecraft/config/alldeath-rules.json` 中定义。

根对象中的每个键都用作类别名称。关联的值是一个字符串数组,表示可以触发游戏规则的实体类型。

以下示例提供了默认配置文件:

json

{

        \"utility\": [

                \"minecraft:allay\",

                \"minecraft:iron_golem\",

                \"minecraft:villager\",

                \"minecraft:wandering_trader\"

        ],

        \"boss\": [

                \"minecraft:ender_dragon\",

                \"minecraft:elder_guardian\",

                \"minecraft:warden\",

                \"minecraft:wither\"

        ]

}

名称样式

死亡消息中的生物名称可以应用不同的颜色和样式。这些样式可以基于与游戏规则相同的类别(内置和用户定义的类别),但也可以与它们独立。它们可以定义与任何游戏规则不匹配的匿名类别。

当多个样式与一个生物匹配时,它们将全部合并。在属性冲突时,顶部样式优先于底部样式。可以为同一类别创建多个样式,从而使不同的样式属性具有不同的优先级。

样式在配置文件 `.minecraft/config/alldeath-styles.json` 中定义,作为 Json 对象的数组。

每个对象可能包含以下属性:

- _(强制)_ `rule`:

        - 如果是字符串,则将其视为游戏规则的名称。

        - 如果是字符串数组,则将其视为实体类型的列表,类似于游戏规则的定义。

- _(可选)_ `color`: 一个字符串。可以是以 `#rrggbb` 格式的十六进制代码,也可以是内置颜色名称。

- _(可选)_ `bold`: 一个布尔值

- _(可选)_ `italic`: 一个布尔值

- _(可选)_ `underline`: 一个布尔值

- _(可选)_ `strikethrough`: 一个布尔值

- _(可选)_ `obfuscated`: 一个布尔值

样式示例

json

[

        {

                \"rule\": [

                        \"minecraft:player\"

                ],

                \"color\": \"yellow\",

                \"italic\": false,

        },

        {

                \"rule\": \"named\",

                \"italic\": true,

                \"underline\": true

        }

]

顶部样式定义了一个用于实体类型为“player”的匿名类别。底部样式引用了内置的“named”类别。

玩家也属于“named”类别,因此这两种样式将应用于玩家的名称:

顶部样式的 “italic” 属性被使用;玩家名称不会倾斜。

顶部样式未定义 “underline” 属性,因此使用较低的属性,玩家名称将被下划线标记。

命令

`/alldeathmsg` 是所有子命令的根。需要至少 2 级权限。

- `test ` 检查应用于给定实体的所有规则,并预览其样式化名称。- `see-enabled` 列出所有当前启用的规则- `disable-all` 禁用所有死亡消息规则。- `set` 等同于 `gamerule` 命令,但更方便地自动完成。

相关模组

### [https://cdn.modrinth.com/data/TR0G6vEd/b79a0a6e2d5003b96ac0d6b04c6802984204963f.png] **Gamerule Menu**](链接)

使游戏规则菜单可从单人游戏世界中访问。

截图:



来自Modrinth所有游戏版本1.21.51.21.61.21.71.21.81.20.51.20.61.211.21.11.21.21.21.31.21.41.201.20.11.20.21.20.31.20.41.19.4所有类型fabricv1.6.1+1.21.5AllDeathMessages-1.6.1+1.21.5.jar下载1.6.1+1.21.5#Release- Ported to MC 1.21.5, marked previous branch as incompatible.展开版本: 1.6.1+1.21.5支持游戏: 1.21.5, 1.21.6, 1.21.7, 1.21.8类型:FabricRelease下载次数: 191v1.6.1+1.20.5AllDeathMessages-1.6.1+1.20.5.jar下载1.6.1+1.20.5#Release- Ported to MC 1.21.5, marked previous branch as incompatible.展开版本: 1.6.1+1.20.5支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4类型:FabricRelease下载次数: 143v1.6.0+1.20.5AllDeathMessages-1.6.0+1.20.5.jar下载1.6.0+1.20.5#Release- Players are no longer included in any built-in mob category.- Added a dedicated \"**Player**\" category.- Added a \"**Tamed**\" category, including both tameable pets and tameable mounts.- Changed the definition of \"Hostile\" and \"Passive\". **They are now based on whether the mob is allowed in Peaceful difficulty** :- Phantoms, Slimes, and Magma Cubes are now considered hostile.- Squids, fish, and Snow Golems are now considered passive.- Piglins (except brutes) are now passive instead of hostile.- The default config now includes snow golems in \"Utility\".- Added a `reload-styles` command.展开版本: 1.6.0+1.20.5支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4类型:FabricRelease下载次数: 146v1.5.9+1.20.5AllDeathMessages-1.5.9+1.20.5.jar下载1.5.9+1.20.5#Release- Made compatible with MC 1.21.2展开版本: 1.5.9+1.20.5支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4类型:FabricRelease下载次数: 147v1.5.8+1.20.5AllDeathMessages-1.5.8+1.20.5.jar下载1.5.8+1.20.5#Release- Made compatible with MC 1.21展开版本: 1.5.8+1.20.5支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1类型:FabricRelease下载次数: 281v1.5.7+1.20.5AllDeathMessages-1.5.7+1.20.5.jar下载1.5.7+1.20.5#Release- Ported to 1.20.5. Marked previous build as incompatible.- Marked 1.20.2 build as compatible with 1.20.3展开版本: 1.5.7+1.20.5支持游戏: 1.20.5, 1.20.6类型:FabricRelease下载次数: 83v1.5.7+1.20.2AllDeathMessages-1.5.7+1.20.2.jar下载1.5.7+1.20.2#Release- Ported to 1.20.5. Marked previous build as incompatible.- Marked 1.20.2 build as compatible with 1.20.3展开版本: 1.5.7+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4类型:FabricRelease下载次数: 377v1.5.6+1.20.3AllDeathMessages-1.5.6+1.20.3.jar下载1.5.6+1.20.3#Release- Moved gamerules to custom categories, so they are easier to find in Cloth-Gamerules.展开版本: 1.5.6+1.20.3支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 99v1.5.6+1.20.2AllDeathMessages-1.5.6+1.20.2.jar下载1.5.6+1.20.2#Release- Moved gamerules to custom categories, so they are easier to find in Cloth-Gamerules.展开版本: 1.5.6+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 110v1.5.6+1.19.4AllDeathMessages-1.5.6+1.19.4.jar下载1.5.6+1.19.4#Release- Moved gamerules to custom categories, so they are easier to find in Cloth-Gamerules.展开版本: 1.5.6+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 82v1.5.5+1.20.4AllDeathMessages-1.5.5+1.20.3.jar下载1.5.5+1.20.3#Release- Fixed some complex names not being visible in death messages. This fixes an incompatibility with Figura.展开版本: 1.5.5+1.20.3支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 98v1.5.5+1.20.2AllDeathMessages-1.5.5+1.20.2.jar下载1.5.5+1.20.2#Release- Fixed some complex names not being visible in death messages. This fixes an incompatibility with Figura.展开版本: 1.5.5+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 118v1.5.5+1.19.4AllDeathMessages-1.5.5+1.19.4.jar下载1.5.5+1.19.4#Release- Fixed some complex names not being visible in death messages. This fixes an incompatibility with Figura.展开版本: 1.5.5+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 66v1.5.4+1.20.3AllDeathMessages-1.5.4+1.20.3.jar下载1.5.4+1.20.3#Release- Updated for 1.20.3展开版本: 1.5.4+1.20.3支持游戏: 1.20.3, 1.20.4类型:FabricRelease下载次数: 60v1.5.4+1.20.2AllDeathMessages-1.5.4+1.20.2.jar下载1.5.4+1.20.2#Release- Updated for 1.20.3展开版本: 1.5.4+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 72v1.5.3+1.20.2AllDeathMessages-1.5.3+1.20.2.jar下载1.5.3+1.20.2#Release- Fixed \"Kill\" messages being wrongly associated with \"Death\" rules.(Regression introduced in 1.5.2)展开版本: 1.5.3+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 110v1.5.3+1.19.4AllDeathMessages-1.5.3+1.19.4.jar下载1.5.3+1.19.4#Release- Fixed \"Kill\" messages being wrongly associated with \"Death\" rules.(Regression introduced in 1.5.2)展开版本: 1.5.3+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 68v1.5.2+1.20.2AllDeathMessages-1.5.2+1.20.2.jar下载1.5.2+1.20.2#Release- **Added new commands `set`, `see-enabled` and `disable-all`**- Coordinates in tooltip will also show the dimension\'s name.展开版本: 1.5.2+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 56v1.5.2+1.19.4AllDeathMessages-1.5.2+1.19.4.jar下载1.5.2+1.19.4#Release- **Added new commands `set`, `see-enabled` and `disable-all`**- Coordinates in tooltip will also show the dimension\'s name.展开版本: 1.5.2+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 59v1.5.1+1.20.2AllDeathMessages-1.5.1+1.20.2.jar下载1.5.1+1.20.2#Release- **Added `/alldeathmsg test <@e>` command, that checks which categories a mob belongs to.**- Jockeys, mobs in vehicles, and Endermen carrying blocks are no longer considered persistent.- The Wither and the Ender Dragon are no longer considered ephemeral.展开版本: 1.5.1+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 76v1.5.1+1.19.4AllDeathMessages-1.5.1+1.19.4.jar下载1.5.1+1.19.4#Release- **Added `/alldeathmsg test <@e>` command, that checks which categories a mob belongs to.**- Jockeys, mobs in vehicles, and Endermen carrying blocks are no longer considered persistent.- The Wither and the Ender Dragon are no longer considered ephemeral.展开版本: 1.5.1+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 51v1.5.0+1.20.2AllDeathMessages-1.5.0+1.20.2.jar下载1.5.0+1.20.2#Release- **Added the ability to see entity coordinates, when hovering a name with Advanced Tooltips enabled.** (This can be disabled in the gamerules)- **Added `persistent`, `ephemeral`, `hostile` and `passive` as built-in rules.**- **Removed the `other` rule, now replaced with `all`.**- Death messages for tamed entities are handled more reliably in multiplayer.展开版本: 1.5.0+1.20.2支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 66v1.5.0+1.19.4AllDeathMessages-1.5.0+1.19.4.jar下载1.5.0+1.19.4#Release- **Added the ability to see entity coordinates, when hovering a name with Advanced Tooltips enabled.** (This can be disabled in the gamerules)- **Added `persistent`, `ephemeral`, `hostile` and `passive` as built-in rules.**- **Removed the `other` rule, now replaced with `all`.**- Death messages for tamed entities are handled more reliably in multiplayer.展开版本: 1.5.0+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 52v1.4.0+1.20AllDeathMessages-1.4.0+1.20.jar下载1.4.0+1.20#Release- **Mob names in death messages can be styled with different colours and effects.** Styles can be configured in a separate config file.展开版本: 1.4.0+1.20支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 101v1.4.0+1.19.4AllDeathMessages-1.4.0+1.19.4.jar下载1.4.0+1.19.4#Release- **Mob names in death messages can be styled with different colours and effects.** Styles can be configured in a separate config file.展开版本: 1.4.0+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 46v1.3.1+1.20AllDeathMessages-1.3.1+1.20.jar下载1.3.1+1.20#Release- Fix default boss category using regular Guardian instead of Elder Guardians展开版本: 1.3.1+1.20支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 57v1.3.1+1.19.4AllDeathMessages-1.3.1+1.19.4.jar下载1.3.1+1.19.4#Release- Fix default boss category using regular Guardian instead of Elder Guardians展开版本: 1.3.1+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 39v1.3.0+1.20AllDeathMessages-1.3.0+1.20.jar下载1.3.0+1.20#Release- **Added the ability to create custom gamerules, regrouping mobs based on their type.**展开版本: 1.3.0+1.20支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 44v1.3.0+1.19.4AllDeathMessages-1.3.0+1.19.4.jar下载1.3.0+1.19.4#Release- **Added the ability to create custom gamerules, regrouping mobs based on their type.**展开版本: 1.3.0+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 40v1.2.0+1.19.4AllDeathMessages-1.2.0+1.19.4.jar下载1.2.0+1.19.4#Release- Upgraded project to Minecraft 1.20- _(MC1.20 upward)_ Kill rules now take all recent attackers into account, not just the biggest and the latest ones.展开版本: 1.2.0+1.19.4支持游戏: 1.19.4类型:FabricRelease下载次数: 41v1.2.0+1.20AllDeathMessages-1.2.0+1.20.jar下载1.2.0+1.20#Release- Upgraded project to Minecraft 1.20- _(MC1.20 upward)_ Kill rules now take all recent attackers into account, not just the biggest and the latest ones.展开版本: 1.2.0+1.20支持游戏: 1.20, 1.20.1, 1.20.2类型:FabricRelease下载次数: 54v1.1.0+1.19.4AllDeathMessages-1.1.0.jar下载1.1.0#Release- **Added separate gamerules for named/unnamed mob deathes/kills**- Vanilla `showDeathMessages` rule is now being respected- Should work in multiplayer (untested)展开版本: 1.1.0支持游戏: 1.19.4类型:FabricRelease下载次数: 43v1.0.0+1.19.4AllDeathMessages-1.0.0.jar下载1.0.0#ReleaseInitial Release展开版本: 1.0.0支持游戏: 1.19.4类型:FabricRelease下载次数: 40全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
All Death Messages
楼主 2025-8-10 16:29:24 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-12-17 17:52 , Processed in 0.198498 second(s), 124 queries .

快速回复 返回顶部 返回列表