Afterlight

Beta 测试阶段 — 尚未达到生产环境标准
本模组正处于积极的 Beta 测试中。请预期会出现错误、版本间的破坏性变更以及粗糙的边缘功能。切勿在未备份的情况下在你珍视的生存世界中使用。欢迎提交报告与反馈。
在 Minecraft 中死亡后,你不会看到重生屏幕,而是变成幽灵——半透明、无实体,且无法与世界互动。你会围绕着死亡场景游荡,而你的朋友则试图使用复活信标来救活你。
功能说明
- 无重生屏幕。 死亡会将你就地转化为幽灵状态——你不会被传送回出生点。你的物品和经验值会像往常一样掉落,除非
keepInventory(保留物品)游戏规则已开启,此时你将保留所有物品(它们只是被锁定,直到你被复活)。
- 两种幽灵形态(可配置):
- 半透明 —— 其他玩家会看到你半透明的模型,并在你的名字上方显示
[Ghost] 前缀。
- 隐形 —— 对其他玩家完全不可见。
- 服务器全局默认 + 玩家个人覆盖。 每位玩家可以通过
/afterlight mode <transparent|invisible> 选择自己偏好的形态,或者回退到服务器管理员设置的默认值。
- 复活信标 —— 一种可由其他玩家制作并用于将你复活的物品。单次使用,仅在成功复活时消耗,且必须配备真实的信标(没有免费复活)。复活时会在目标玩家身上生成青色粒子环特效。
- 幽灵状态下真正无实体。 作为幽灵时,你无法:
- 受到伤害——怪物会无视你,近战攻击/弹道直接穿过你的身体击中你身后的物体。
- 推动或被其他实体推动。
- 破坏方块、攻击或使用物品。
- 打开你的物品栏或任何容器——你的快捷栏会被隐藏,且物品在复活前无法访问。
- 使用聊天或命令(世界所有者/服务器控制台除外,以便管理员保持控制权)。
- 拾取经验值或物品,或在身上留下疾跑粒子/卡住的箭矢。
- 清晰的“死亡”UI。 屏幕上会显示红色的 Dead 横幅,生命值条显示为空心,屏幕提示会解释被阻止的操作(例如 “你不再有物品栏了。”)。
- 死亡广播。 当玩家死亡时,所有人都会看到红色的
<name> has been killed!;复活时,则会看到绿色的 <name> has been revived!。
- 240格范围内的击杀音效。 对于距离死亡位置 240 格内的每位玩家,都会播放类似凋零刷出的警报音效——即使超出了正常的声音传播范围。
- 持久化。 幽灵状态在重新登录和服务器重启后依然保留。以幽灵状态退出并重新加入?你仍然是幽灵。
- 兼容不死图腾。 手持图腾仍能让你免于致命伤害——原版图腾的行为得以保留。
复活信标合成配方
在 3×3 合成台中制作:
|
|
|
| 恶魂之泪 |
灵魂灯笼 |
恶魂之泪 |
| 灵魂灯笼 |
信标 |
灵魂灯笼 |
| 恶魂之泪 |
不死图腾 |
恶魂之泪 |
当你拥有信标后,该配方将解锁至你的配方书。
命令
所有 /afterlight 子命令仅限 OP(操作员)使用。
| 命令 |
效果 |
/afterlight |
切换你自己进入/退出幽灵模式 |
/afterlight <player> |
切换另一名玩家 |
/afterlight visible [player] |
翻转当前幽灵在半透明和隐形之间 |
/afterlight mode <transparent|invisible> [player] |
设置玩家的偏好死亡形态(持久化) |
/afterlight default <transparent|invisible> |
设置服务器全局默认的死亡形态 |
要求
- Minecraft 1.21.11
- Fabric Loader ≥ 0.18.4
- Fabric API
- AStudioLib 1.1.0(共享库——客户端必需;将其与 Afterlight 一起安装,否则游戏将无法启动)
- Java 21
多人游戏注意: Afterlight 同时在服务器和每位玩家的客户端上运行。在每个客户端上安装它(加上 Fabric API 和 AStudioLib),并在服务器上安装 Afterlight 和 Fabric API。
已知的 Beta 状态注意事项
- 主要在开发环境和小型多人游戏 setups 的 macOS 上进行了测试。大型服务器可能会出现我们尚未发现的问题。
- 与其他挂钩死亡管道的模组(替代图腾、自定义重生系统、墓碑等)的行为未经验证,可能会发生冲突。
afterlight_config.json 和 afterlight_ghosts.dat 的保存格式可能在 Beta 构建之间发生变化。
如果你遇到错误或奇怪的交互现象,简短的重现步骤加上你的 logs/latest.log 日志是最有用的信息。
Afterlight

BETA TESTING — NOT PRODUCTION-READY
This mod is in active beta testing. Expect bugs, breaking changes between
versions, and rough edges. Do not use on a survival world you care about
without backups. Reports and feedback are welcome.
When you die in Minecraft, instead of seeing the respawn screen, you become
a ghost — translucent, intangible, and unable to interact with the world.
You drift around the death scene as your friends scramble to revive you with
a Revival Beacon.
What it does
- No respawn screen. Death converts you into a ghost in-place — you don't
get teleported to spawn. Your inventory and XP drop as usual, unless the
keepInventory gamerule is on, in which case you keep everything (it just
stays locked away until you're revived).
- Two ghost forms (configurable):
- Transparent — others see a translucent version of you with a
[Ghost] prefix above your name.
- Invisible — fully hidden from other players.
- Server-wide default + per-player override. Each player can pick their
preferred form via
/afterlight mode <transparent|invisible>, or fall back
to whatever the server admin sets as the default.
- Revival Beacon — a craftable item another player uses on you to bring
you back to life. Single-use, consumed only on a successful revive, and a
real beacon is required (no free revives). Spawns a poof of cyan particle
rings on the revived player.
- Truly intangible while a ghost. You cannot:
- Take damage — mobs ignore you, and melee/projectiles pass straight
through your body to whatever's behind you.
- Push or be pushed by other entities.
- Break blocks, attack, or use items.
- Open your inventory or any container — your hotbar is hidden and your
items are inaccessible until you're revived.
- Use chat or commands (the world owner / server console is exempt, so
admins keep control).
- Pick up XP or items, or leave sprint particles / stuck arrows on your body.
- Clear "Dead" UI. A red Dead banner shows on screen, your health bar
reads empty hearts, and on-screen notices explain blocked actions (e.g.
"You don't have an Inventory anymore.").
- Death broadcast. When a player dies, everyone sees a red
<name> has been killed!; on revival, a green <name> has been revived!.
- 240-block kill sound. A wither-spawn alert plays for every player within
240 blocks of a death — even outside normal sound range.
- Persistent. Ghost state survives relogs and server restarts. Quit and
rejoin while a ghost? You're still a ghost.
- Totem of Undying compatible. Holding a totem still saves you from fatal
damage — vanilla totem behavior is preserved.
Revival Beacon recipe
Crafted in a 3×3 grid:
|
|
|
| Ghast Tear |
Soul Lantern |
Ghast Tear |
| Soul Lantern |
Beacon |
Soul Lantern |
| Ghast Tear |
Totem of Undying |
Ghast Tear |
The recipe unlocks in your recipe book once you have a Beacon.
Commands
All /afterlight subcommands are OP-only.
| Command |
Effect |
/afterlight |
Toggle yourself into / out of ghost mode |
/afterlight <player> |
Toggle another player |
/afterlight visible [player] |
Flip a current ghost between transparent and invisible |
/afterlight mode <transparent|invisible> [player] |
Set a player's preferred death-form (persists) |
/afterlight default <transparent|invisible> |
Set the server-wide default death-form |
Requirements
- Minecraft 1.21.11
- Fabric Loader ≥ 0.18.4
- Fabric API
- AStudioLib 1.1.0 (shared library — required on the client; install it
alongside Afterlight or the game will fail to launch)
- Java 21
Multiplayer note: Afterlight runs on both the server and every player's
client. Install it (plus Fabric API and AStudioLib) on each client, and
Afterlight + Fabric API on the server.
Known beta-status caveats
- Tested primarily on macOS in dev environments and small multiplayer setups.
Larger servers may surface issues we haven't seen.
- Behavior with other mods that hook the death pipeline (alternative totems,
custom respawn systems, gravestones, etc.) has not been validated and may
conflict.
- Save format for
afterlight_config.json and afterlight_ghosts.dat may
change between beta builds.
If you hit a bug or weird interaction, a short repro plus your
logs/latest.log is the most useful thing you can send.
评论 0
登录后参与评分
还没有评论,来抢沙发吧