ReviveByDeath
ReviveByDeath 是一款适用于 Minecraft 1.21.1 的模组(现已支持 Fabric、Forge 和 Neoforge),它将通常突如其来的死亡画面替换为戏剧性的电影式倒带序列。当玩家受到致命伤害并满足条件时,时间会倒流,播放自定义过场动画,并将玩家安全传送回最近的存档点。
本模组专为平衡生存玩法、多人服务器以及硬核整合包而设计,提供随进度增加的消耗成本以及视觉时间线特效。

在 Death Rewind 生效之前,玩家可能会被其他复活模组击倒。服务器管理员可以更改优先级顺序。
"revivePriority": "downed_first" 或 "rewind_first"
功能特性
- 死亡倒带 (Death Rewind):中断致命伤害,播放自定义序列,渲染客户端过场动画覆盖层并屏蔽环境音效。
- 自动存档点追踪器:持续检查并为每位玩家保存安全位置。
- 手动床铺存档点:白天或夜晚右键点击床铺即可立即注册一个安全存档点。
- 死亡倒带附魔:一种对生存友好的附魔,用于触发倒带效果。
- 多种激活模式:支持
enchantment(附魔)、totem(图腾)、both(两者皆可)和 always(始终)模式,以适应各种游玩风格。
- 经验等级消耗递增:通过增加经验等级消耗来惩罚重复倒带行为,该消耗会在睡觉或正常死亡时重置。
- 玩家残影:在死亡地点生成一个装备了玩家护甲和武器的自定义僵尸(掉落率为 0% 以防止物品复制)。
- 维度裂隙:返回时在地面生成装饰性裂纹,随着重复死亡而扩大,并自动恢复为原始方块,不会损坏玩家建造的结构。
- 复活后保护:返回后授予临时无敌状态,以防止瞬间死亡循环。
详细说明
1. 存档点系统
服务器会在后台自动跟踪并更新每位玩家的最新安全存档点。
存档点保存条件:
只有当玩家处于以下状态时,位置才会被保存为存档点:
- 存活且位于地面。
- 不在岩浆、火焰或虚空之中。
- 站在坚固、实心、非液体的方块上。
- 位于开放空间(脚部和头部方块的碰撞箱必须畅通无阻)。
保存触发方式:
- 自动:服务器按配置的时间间隔进行检查(默认:若已有活跃存档点,每 5 分钟/6000 刻检查一次;若正在寻找首个安全存档点,每 0.5 秒/10 刻检查一次)。
- 手动(床铺):随时右键点击任何床铺,会立即尝试在当前安全位置保存手动存档点,并显示确认消息。
2. 激活模式
模组的行为取决于 config/revivebydeath.json 中配置的 activationMode:
enchantment:需要至少穿戴一件带有 Death Rewind 附魔的护甲。
totem:需要在主手或副手持有一个不死图腾。
both:允许使用 Death Rewind 护甲或不死图腾来触发倒带。模组优先检查护甲:如果玩家穿着附魔护甲但经验等级不足,则会自动降级为消耗图腾。
always:死亡时始终激活倒带,无需物品或附魔,但会消耗经验。适合创意展示或测试。
3. 死亡倒带附魔
- 类型:1 级护甲附魔。
- 进阶标签:标记为
non_treasure(非宝藏类)和 tradeable(可交易)。
- 用法:只需一件装备的护甲带有此附魔即可触发倒带。
4. 经验消耗递增
为了平衡倒带的安全性,基于经验的模式(enchantment 和 always)会向玩家收取经验等级费用。
- 计算公式:每次成功倒带后,等级消耗都会增加。默认情况下,起始消耗为 6 级,并根据已使用的倒带次数进行缩放:
$$\text{XP Level Cost} = (\text{minimumXpLevelCost} + \text{uses} \times \text{xpLevelCostIncrease}) \times \text{xpLevelCostMultiplier}^{\text{uses}}$$
- 豁免情况:如果玩家缺乏所需的经验等级,倒带将失败,玩家将遭受正常死亡。
- 重置机制:累计倒带计数在以下情况下重置为最小值:
- 玩家在床铺上睡觉(如果启用了
resetCostOnSleep)。
- 玩家遭受正常的原版死亡(如果启用了
resetCostOnDeath)。
- 管理员运行
/revivebydeath reset_cost 命令。
5. 玩家残影
当触发倒带时,会在死亡坐标处生成一个 Zombie:
- 装备:复制玩家死亡时刻所持或所穿的护甲和手持物品。
- 属性:赋予永久 Speed II(速度 II)和 Strength I(力量 I)效果,以及 10 秒的 Glowing(发光)效果。
- 平衡性调整:装备掉落率设置为
0.0F(0%),以防止玩家通过击杀自己的残影来复制装备。残影不保留任何玩家经验。
6. 维度裂隙
当玩家传送回存档点时,时间线上会出现一道裂隙,在其周围的地板方块上产生裂纹。
方块映射:
为了防止玩家获取稀有资源或利用其制作经验农场(例如哭泣黑曜石或幽匿),裂隙会使用安全、具有装饰性且生存价值极低的方块:
Stone Bricks(石砖)变为 Cracked Stone Bricks(裂开的石砖)
Deepslate Bricks(深板岩砖)变为 Cracked Deepslate Bricks(裂开的深板岩砖)
Deepslate Tiles(深板岩瓦)变为 Cracked Deepslate Tiles(裂开的深板岩瓦)
Nether Bricks(下界砖)变为 Cracked Nether Bricks(裂开的下界砖)
Polished Blackstone Bricks(磨制黑石砖)变为 Cracked Polished Blackstone Bricks(裂开的磨制黑石砖)
Logs / Planks(原木/木板,木质)变为 Basalt(玄武岩,模拟烧焦原木外观)
Stone / Cobblestone(石头/圆石)变为 Tuff(凝灰岩)
Grass / Mycelium / Dirt(草方块/菌丝体/泥土)变为 Coarse Dirt(粗泥)
Sand(沙子)变为 Gravel(砾石)
- 其他方块变为
Tuff(凝灰岩)
配置参考
配置文件位于服务器/客户端的 config/revivebydeath.json:
| 键 |
默认值 |
描述 |
activationMode |
"enchantment" |
触发回溯的条件:"enchantment"(附魔)、"totem"(图腾)、"both"(两者皆可)或 "always"(始终生效)。 |
replaceVanillaTotem |
true |
如果为 true,则用电影式回溯机制替换原版不死图腾的机制。 |
consumeTotem |
true |
是否在触发回溯时消耗不死图腾。 |
enchantmentArmorDamage |
35 |
含有死亡回溯附魔的装备所受到的耐久伤害。 |
useXpCost |
true |
如果为 true,则为非图腾回溯应用基于等级缩放的经验值消耗。 |
minimumXpLevelCost |
6 |
首次回溯的基础经验值等级消耗。 |
xpLevelCostIncrease |
2 |
每次回溯线性增加的等级消耗。 |
xpLevelCostMultiplier |
1.18 |
每次回溯指数缩放等级消耗的乘数。 |
resetCostOnSleep |
true |
如果为 true,在床铺睡觉会将回溯计数器和消耗重置为最低值。 |
resetCostOnDeath |
true |
如果为 true,遭受普通的原版死亡会将回溯计数器和消耗重置。 |
enableCutscene |
true |
切换客户端电影式回溯覆盖层和视觉延迟效果。 |
cutsceneIntroFadeTicks |
4 |
序列开始时屏幕渐变为红色/黑色的刻数。 |
cutsceneTicks |
32 |
核心 PNG 循环动画持续的时间(刻)。 |
cutsceneFrames |
50 |
自定义 PNG 覆盖层序列中的总帧数。 |
returnEffectTicks |
14 |
返回检查点后覆盖层淡出的持续时间。 |
postReviveInvulnerabilityTicks |
60 |
返回后的无敌持续时间(以刻为单位,20 刻 = 1 秒)。 |
checkpointInitialCheckTicks |
10 |
搜索玩家首个检查点时的检测频率(以刻为单位)。 |
checkpointRecheckTicks |
6000 |
更新活跃检查点时的检测频率(以刻为单位)。 |
spawnPastShadow |
true |
切换是否在死亡地点生成装备了玩家装备的僵尸(过去之影)。 |
createDimensionalRift |
true |
切换检查点周围的地面开裂和回溯效果。 |
命令
玩家命令
/revivebydeath status: 显示玩家当前的检查点坐标、活跃维度以及下一次回溯所需的经验值等级。
/revivebydeath log on: 启用调试消息,显示回溯失败的原因(例如:地面不安全、无检查点、经验值不足)。
/revivebydeath log off: 禁用调试消息。
操作员命令(权限等级 2)
/revivebydeath mode <always|totem|enchantment|both>: 动态覆盖激活模式。
/revivebydeath cutscene <on|off>: 全局切换过场动画播放。
/revivebydeath give_book: 给予执行者一本带有死亡回溯附魔的附魔书。
/revivebydeath reset_cost [player]: 重置目标玩家的回溯计数器和经验值消耗。
模组验证与安装
ReviveByDeath 已完全验证并打包,适用于 Fabric 和 Forge 加载器下的 Minecraft 1.21.1。为确保过场动画同步、覆盖层、自定义音效及事件处理的正常运行,必须在客户端和服务端同时安装。
ReviveByDeath
ReviveByDeath is a Minecraft 1.21.1 mod (available now for Fabric, Forge and Neoforge) that replaces the normal, sudden death screen with a dramatic, cinematic rewind sequence. When a player suffers fatal damage and meets the requirements, rewinds, a custom cutscene plays, and the player is safely teleported back to their latest safe checkpoint.
This mod is designed from the ground up for balanced survival gameplay, multiplayer servers, and hardcore modpacks, offering scaling progression costs, and visual timeline effects.

Players can now be downed by another revival mod before Death Rewind steps in. Server owners can change which gets priority.
"revivePriority": "downed_first" or "rewind_first"
Features
- Death Rewind: Interrupts fatal damage with a customized sequence, rendering a client-side cutscene overlays and muting ambient noise.
- Automatic Checkpoint Tracker: Continuously checks and saves safe locations for each player.
- Manual Bed Checkpoints: Right-clicking a bed at day or night registers an immediate safe checkpoint.
- Death Rewind Armor Enchantment: Survival-friendly enchantment that triggers the rewind.
- Multiple Activation Modes: Supports
enchantment, totem, both, and always modes to fit any playstyle.
- Scaling XP Level Costs: Penalizes repeated rewinds by increasing the XP level cost, which resets when sleeping or dying normally.
- Player Shadow: Spawns a custom Zombie equipped with the player's armor and weapons at the point of death (0% drop rate to prevent item duplication).
- Dimensional Rift: Generates cosmetic cracks on the ground upon returning, which expand with repeated deaths and automatically revert to original blocks without harming player-built structures.
- Post-Revive Protection: Grants temporary invulnerability after returning to prevent instant death loops.
Details
1. Checkpoint System
The server automatically tracks and updates each player's latest safe checkpoint in the background.
Checkpoint Saving Criteria:
A location is saved as a checkpoint only if the player is:
- Alive and on the ground.
- Not in lava, fire, or the void.
- Standing on a sturdy, solid, non-liquid block.
- Positioned in open space (feet and head blocks must have clear collision).
Saving Triggers:
- Automatic: The server performs checks at configurable intervals (default: every 5 minutes/6000 ticks if a checkpoint is active; every 0.5 seconds/10 ticks if looking for the first safe checkpoint).
- Manual (Beds): Right-clicking any bed at any time immediately attempts to save a manual checkpoint at the player's safe position, displaying a confirmation message.
2. Activation Modes
The mod's behavior depends on the configured activationMode in config/revivebydeath.json:
enchantment: Requires at least one equipped piece of armor enchanted with Death Rewind.
totem: Requires holding a Totem of Undying in either the main hand or off-hand.
both: Allows either Death Rewind armor or a totem to trigger the rewind. The mod checks armor first: if the player wears enchanted armor but does not have enough XP levels, it automatically falls back to consuming a totem.
always: Rewinds are always active on death, requiring no items or enchantments, but cost xp. Ideal for creative showcases or testing.
3. Death Rewind Enchantment
- Type: Level 1 armor enchantment.
- Progression: Tagged as
non_treasure and tradeable
- Usage: Only one equipped armor piece needs to be enchanted for the rewind to activate.
4. XP Cost Scaling
To balance the safety of the rewind, XP-based modes (enchantment and always) charge the player XP levels.
- Cost Formula: The level cost grows with each successful rewind. By default, it starts at 6 levels and scales up based on the number of rewinds used:
$$\text{XP Level Cost} = (\text{minimumXpLevelCost} + \text{uses} \times \text{xpLevelCostIncrease}) \times \text{xpLevelCostMultiplier}^{\text{uses}}$$
- Exemptions: If a player lacks the required XP levels, the rewind fails, and they suffer a normal death.
- Resets: The cumulative rewind count resets back to the minimum when:
- The player sleeps in a bed (if
resetCostOnSleep is enabled).
- The player dies a normal vanilla death (if
resetCostOnDeath is enabled).
- An admin runs the
/revivebydeath reset_cost command.
5. Player Shadow
A Zombie is spawned at the coordinates of death when a rewind is triggered:
- Equipment: Copies the armor and hand items the player held/wore at the moment of death.
- Properties: Given permanent Speed II and Strength I effects, and a 10-second Glowing effec.
- Balancing: Equipment drop rates are set to
0.0F (0%) to prevent players from duplicating gear by slaying their own shadow. No player XP is retained by the shadow.
6. Dimensional Rift
When a player teleports back to their checkpoint, a rift in the timeline appears, cracking the floor blocks around them.
Block Mapping:
To prevent players from obtaining rare resources or XP farms (e.g. from Crying Obsidian or Sculk), the rift uses safe, decorative blocks with very low survival value:
Stone Bricks to Cracked Stone Bricks
Deepslate Bricks to Cracked Deepslate Bricks
Deepslate Tiles to Cracked Deepslate Tiles
Nether Bricks to Cracked Nether Bricks
Polished Blackstone Bricks to Cracked Polished Blackstone Bricks
Logs / Planks (Wood) to Basalt (charred log appearance)
Stone / Cobblestone to Tuff
Grass / Mycelium / Dirt to Coarse Dirt
Sand to Gravel
- Others to
Tuff
Configuration Reference
The configuration file is located at config/revivebydeath.json on the server/client:
| Key |
Default Value |
Description |
activationMode |
"enchantment" |
Requirements to trigger rewind: "enchantment", "totem", "both", or "always". |
replaceVanillaTotem |
true |
If true, replaces vanilla Totem of Undying mechanics with the cinematic rewind. |
consumeTotem |
true |
Whether the Totem of Undying is consumed upon triggering a rewind. |
enchantmentArmorDamage |
35 |
Durability damage dealt to armor containing the Death Rewind enchantment. |
useXpCost |
true |
If true, applies scaling XP level costs to non-totem rewinds. |
minimumXpLevelCost |
6 |
The base XP level cost for the first rewind. |
xpLevelCostIncrease |
2 |
Linear increase in level cost per rewind. |
xpLevelCostMultiplier |
1.18 |
Exponential multiplier scaling the level cost per rewind. |
resetCostOnSleep |
true |
If true, sleeping in a bed resets the rewind counter and cost to the minimum. |
resetCostOnDeath |
true |
If true, suffering a normal vanilla death resets the rewind counter and cost. |
enableCutscene |
true |
Toggles the client-side cinematic rewind overlays and visual delay. |
cutsceneIntroFadeTicks |
4 |
Ticks for the screen to fade to red/black at the start of the sequence. |
cutsceneTicks |
32 |
Duration of the core PNG cutscene loop. |
cutsceneFrames |
50 |
Total number of frames in the custom PNG overlay sequence. |
returnEffectTicks |
14 |
Duration of the overlay fadeout after returning to the checkpoint. |
postReviveInvulnerabilityTicks |
60 |
Invulnerability duration (in ticks, 20 ticks = 1 second) upon returning. |
checkpointInitialCheckTicks |
10 |
Frequency of checks (in ticks) when searching for a player's first checkpoint. |
checkpointRecheckTicks |
6000 |
Frequency of checks (in ticks) when updating an active checkpoint. |
spawnPastShadow |
true |
Toggles spawning the Zombie equipped with player gear at the point of death. |
createDimensionalRift |
true |
Toggles ground-cracking and reversion around checkpoints. |
Commands
Player Commands
/revivebydeath status: Displays the player's current checkpoint coordinates, active dimensions, and the next rewind cost in XP levels.
/revivebydeath log on: Enables debug messages showing reasons why a rewind fails (e.g. unsafe ground, no checkpoint, insufficient XP).
/revivebydeath log off: Disables debug messages.
Operator Commands (Permission Level 2)
/revivebydeath mode <always|totem|enchantment|both>: Dynamically overrides the activation mode.
/revivebydeath cutscene <on|off>: Toggles the cutscene playback globally.
/revivebydeath give_book: Gives the executing player an enchanted book with the Death Rewind enchantment.
/revivebydeath reset_cost [player]: Resets the rewind counter and XP cost for the target player.
Mod Verification & Installation
ReviveByDeath is fully verified and packaged for Minecraft 1.21.1 on both Fabric and Forge loaders. It must be installed on both client and server to ensure proper cutscene sync, overlays, custom sounds, and event handling.
评论 0
登录后参与评分
还没有评论,来抢沙发吧