跳到正文

LastWords

作者:kvapilvaclav0

Replaces the 'You Died!' headline on the vanilla death screen with a random line from your own config file.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

LastWords 支持哪些 Minecraft 版本?

LastWords 支持 Minecraft Java 版 1.21.8–1.21.11,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

LastWords 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

kvapilvaclav0 的其他作品

查看全部 →