LastWords 是一款轻量级的客户端专属 Fabric 模组,它将原版死亡界面上巨大的“你死了!”标题替换为从你自定义列表中随机抽取的一条消息。让每一次死亡都更具个人特色——或者让你的朋友们在观看直播时感到更加烦躁。
功能
- 自定义死亡标题。 每当打开死亡界面时,醒目的红色标题会被替换为你配置文件中随机选择的一行文本。
- 随机池。 你可以提供任意数量的消息;模组会在每次死亡时均匀随机地选取一条。
- 原版回退。 如果你的消息列表为空或配置文件缺失,模组会静默地回退到原版的“你死了!”。
- 零设置。 首次启动时,模组会自动生成一个包含十条示例文本的默认
config/lastwords.json 文件,让你能立即看到效果,之后再进行编辑。
- 仅客户端。 适用于任何服务器——无论是单人游戏还是多人游戏。无需安装服务端,也不会触碰任何游戏规则。
配置
编辑 config/lastwords.json:
{
"messages": [
"GAME OVER",
"You blinked.",
"Skill issue.",
"Press F to respawn.",
"Maybe next time.",
"That was avoidable.",
"Gravity wins.",
"RIP.",
"Better luck next life.",
"Oof."
]
}
自由添加、删除或替换文本行。每个条目均为纯文本。列表在游戏启动时加载一次;编辑后需重新加载游戏以应用更改。
工作原理
通过单个 Mixin 拦截 DeathScreen 构造函数中的 super(Text) 调用,并用配置文件中随机选取的消息替换原版标题。标题下方的死因提示(如“玩家被……击杀”)保持不变。
跨版本支持
已在 1.21.8, 1.21.9, 1.21.10, 1.21.11 上测试。一个 JAR 文件,一次安装即可使用。
LastWords is a tiny, client-only Fabric mod that swaps out the giant "You Died!" headline on the vanilla death screen for a custom message picked at random from a list you control. Make every wipe a little more personal — or a little more annoying for your friends watching the stream.
Features
- Custom death title. Whenever the death screen opens, the big red headline is replaced with a random line from your config.
- Random pool. Provide as many messages as you want; the mod picks one uniformly at random per death.
- Vanilla fallback. If your message list is empty or the file is missing, the mod silently falls back to the vanilla "You Died!".
- Zero setup. On first launch the mod writes a default
config/lastwords.json with ten sample lines so you can see it work immediately, then edit them later.
- Client-only. Works on any server — singleplayer or multiplayer. No server install needed, no game rules touched.
Configuration
Edit config/lastwords.json:
{
"messages": [
"GAME OVER",
"You blinked.",
"Skill issue.",
"Press F to respawn.",
"Maybe next time.",
"That was avoidable.",
"Gravity wins.",
"RIP.",
"Better luck next life.",
"Oof."
]
}
Add, remove, or replace lines freely. Each entry is plain text. The list is loaded once at game start; reload the game after edits to pick up changes.
How it works
A single Mixin intercepts the super(Text) call in DeathScreen's constructor and substitutes a random message from your config in place of the vanilla title. The death cause line ("Player was killed by …") below the title is untouched.
Cross-version
Tested on 1.21.8, 1.21.9, 1.21.10, 1.21.11. One JAR, one install.
评论 0
登录后参与评分
还没有评论,来抢沙发吧