DeathCoords 是一款轻量级的仅客户端 Fabric 模组,专为那些经常因掉入岩浆、被怪物击杀或意外跌落而丢失物品的玩家设计。每当玩家死亡时,该模组会精确记录死亡位置并通过聊天窗口发送两次提示,方便你走回去找回你的装备。
功能
- 聊天栏死亡信息。 一旦死亡,模组会将你的 X、Y、Z 坐标以及所在维度发送到聊天栏:
[DeathCoords] You died at X 124, Y 64, Z -312 (Overworld)
- 重生后重复发送。 在你重生后,系统会立即再次发送一条消息,确保你不会因为死亡屏幕的遮挡而错过信息:
[DeathCoords] Your last death was at X 124, Y 64, Z -312 (Overworld)
- 复制到剪贴板。 坐标会以
X Y Z 的格式自动复制到系统剪贴板,方便你粘贴到路标模组、Wiki 页面或 Discord 聊天中。
- 维度感知。 能够识别主世界(Overworld)、下界(Nether)、末地(End)以及任何模组添加的维度(以注册表 ID 打印显示)。
- 仅客户端。 适用于任何服务器环境——无论是单人游戏还是多人联机。无需 Mixins,也无需在服务器上安装任何东西。
工作原理
在每个客户端 tick 中,模组会轮询玩家的死亡状态。当检测到从“存活”变为“死亡”的状态切换时,它会捕获当前的位置和维度键值,打印死亡信息,并将坐标写入系统剪贴板。当检测到从“死亡”变为“存活”的状态切换(即重生)时,它会再次打印最后一次已知的死亡位置,以便你在死亡界面消失后能在聊天栏中看到它。
跨版本支持
已在 1.21.8, 1.21.9, 1.21.10, 1.21.11 上测试通过。一个 JAR 文件,一次安装即可使用。
无需配置
无需进行任何配置——模组开箱即用。没有按键绑定,没有图形界面,也没有 JSON 配置文件。
DeathCoords is a small, client-only Fabric mod for players who keep losing their inventory to lava, mobs, or that one unexpected drop. Whenever you die, the mod records exactly where it happened and tells you in chat — twice — so you can walk back and reclaim your gear.
Features
- Death message in chat. As soon as you die, the mod posts your X, Y, Z coordinates and the dimension to chat:
[DeathCoords] You died at X 124, Y 64, Z -312 (Overworld)
- Repeats after respawn. A second message is posted right after you respawn, so you don't miss it on the death screen:
[DeathCoords] Your last death was at X 124, Y 64, Z -312 (Overworld)
- Clipboard copy. The coordinates are copied to your system clipboard as
X Y Z, ready to paste into a waypoint mod, a wiki, or a Discord chat.
- Dimension-aware. Recognizes the Overworld, the Nether, the End, and any modded dimension (printed by its registry id).
- Client-only. Works on any server — singleplayer or multiplayer. No mixins, no server install required.
How it works
On every client tick, the mod polls the player's death state. On the alive→dead edge it captures the current position and dimension key, prints the death message, and writes the coordinates to the system clipboard. On the dead→alive edge (respawn), it prints the last-known death location again so you see it in chat once the death screen is gone.
Cross-version
Tested on 1.21.8, 1.21.9, 1.21.10, 1.21.11. One JAR, one install.
No configuration
There is nothing to configure — the mod just works. No keybinds, no GUI, no JSON file.
评论 0
登录后参与评分
还没有评论,来抢沙发吧