Return by Death
一款受《Re:Zero》中“死亡回归”概念启发的模组。它将标准的死亡与重生机制替换为回滚至世界状态:玩家死亡后,游戏状态将回溯至上一次保存的检查点。
工作原理
该模组会记录已加载区块、实体和玩家的状态。当因死亡或手动触发回滚时,世界状态将被倒带。
为防止与原时间线产生分歧,内部随机数生成器(RNG)逻辑经过调整。在回滚后重复完全相同的操作,会导致所有概率性事件(如怪物行为、弹道轨迹、战利品生成或实体生成坐标)都与初始时间线完全一致地发生。
恢复内容
- 地形与方块: 放置、破坏或爆炸的方块(包括 TNT 和苦力怕爆炸)将恢复到之前的状态。方块实体(箱子、熔炉)、排队的方块与流体刻、方块事件(活塞移动、钟声响起)以及村民工作站兴趣点(POI)均会恢复。
- 实体与怪物: 位置坐标、生命值、攻击目标、导航路径、伤害计时器、乘客链(骑乘者、船和矿车中的怪物)以及 AI 内存状态(村民记忆、交易与日程、活跃行为任务)均会恢复。
- 玩家: 物品栏、末影箱内容、坐标、视角角度、生命值、饥饿值、经验值、药水效果、物品冷却时间、能力、配方书、出生点、分数、打开的菜单窗口以及鼠标悬停的物品。
- 全局世界状态: 世界时间、天气、活跃的袭击、末影龙战斗阶段、记分板数据、自定义Boss血条、世界边界以及强制加载的区块。
确定性
- 战斗与随机事件的可重现性: 宝箱战利品生成、怪物掉落、击退方向以及袭击队伍生成位置完全可重现。
- 自然生成: 怪物生成算法与世界种子和时间对齐,因此重复相同的操作会生成相同的生物。
客户端优化
- 客户端区块缓存: 在服务器数据通过网络同步时,客户端会显示本地缓存的区块和光照。
- GPU 几何体缓存: 编译后的区块几何体存储在显存(VRAM)中,减少回滚期间的渲染管线停顿。
- 视觉调整: 平滑相机过渡,重置受伤倾斜和切换物品动画,并保留搜索查询和界面标签页。
自动保存模式
- 间隔模式: 按固定计时器或在配置范围内的随机间隔创建检查点。
- 自适应模式: 分析周围威胁等级(玩家生命值、攻击性怪物、附近危险、可用逃生路线),在面临严重危险前或战斗结束后创建检查点。
- 击败 Boss 保存: 在击败末影龙或凋灵后自动保存进度。
- 危险保护: 防止在不可挽回的致命条件(如掉入虚空或在岩浆中燃烧)下创建检查点。
多人游戏:关键玩家系统
在多人游戏中,回滚应用于整个服务器。关键玩家配置决定了谁的死亡会触发回滚:
- 交互式 GUI: 游戏内界面,包含玩家列表,用于配置模式、冷却时间和轮换。
- 固定模式: 回滚绑定到单个指定的玩家。
- 多人模式: 指定多个关键玩家的列表。
- 全员模式: 任何在线玩家的死亡都会引发全局回滚。
- 轮换模式: 关键玩家角色在在线玩家之间定期轮换。
- 回滚冷却时间: 可配置的回滚冷却时间,以防止死亡循环。
- 离线玩家: 如果玩家在回滚前断开连接,数据更改将直接写入磁盘上的
.dat文件,使其在重新加入时处于检查点状态。
命令与控制
命令:
/rzero set— 手动创建检查点。/rzero anchor— 打开关键玩家配置菜单。/rzero anchor status— 显示当前的关键玩家模式、锚点状态和冷却时间状态。/rzero anchor cooldown <seconds>— 设置死亡后的回滚冷却时长。/rzero anchor mode fixed [player]— 设置单个关键玩家。/rzero anchor mode multi <players>— 设置关键玩家列表。/rzero anchor mode everyone— 启用任何玩家死亡时的回滚。/rzero anchor mode rotating <seconds>— 启用关键玩家的定期轮换。
热键: 可在标准游戏控制菜单中配置用于手动保存、手动回滚和打开关键玩家菜单的按键绑定(默认未绑定)。
游戏规则:
rzeroAutoSave— 启用或禁用自动检查点。rzeroUseAdaptiveMode— 切换自适应保存模式。rzeroAdaptiveInterval— 自适应模式下自动保存前所需的安全持续时间(秒)。rzeroFixedInterval— 自动保存之间的间隔(秒)。rzeroUseRandomInterval— 启用保存之间的随机间隔。rzeroRandomIntervalMin/rzeroRandomIntervalMax— 随机间隔的范围界限。rzeroPlayRollbackSound— 在时间倒流期间播放音效。
配置
可通过 Cloth Config 界面配置回滚参数、确定性设置和客户端渲染选项(支持标准和高级显示模式)。
Return by Death
A mod inspired by the "Return by Death" concept from Re:Zero. It replaces the standard death and respawn mechanics with a world rollback: upon death, the game state returns to the last saved checkpoint.
How it works
The mod records the state of loaded chunks, entities, and players. When a rollback is triggered upon death or manually, the world state is rewound.
To prevent divergence from the original timeline, internal random number generator (RNG) logic is adjusted. Repeating the exact same actions after a rollback causes all probabilistic events (mob behavior, projectile paths, loot generation, or entity spawn coordinates) to occur identically to the initial timeline.
What is restored
- Terrain and blocks: Placed, broken, or exploded blocks (including TNT and creeper explosions) revert to their previous state. Block entities (chests, furnaces), scheduled block and fluid ticks, block events (piston movements, bell ringing), and villager workstation points of interest (POI) are restored.
- Entities and mobs: Position coordinates, health, attack targets, navigation paths, damage timers, passenger chains (jockeys, mobs in boats and minecarts), and AI RAM state (villager memory, trades and schedules, active behavior tasks) are restored.
- Players: Inventory, ender chest contents, coordinates, view angles, health, hunger, experience, potion effects, item cooldowns, abilities, recipe book, spawn point, score, open menu windows, and the item held on the cursor.
- Global world state: World time, weather, active raids, Ender Dragon fight phases, scoreboard data, custom boss bars, world borders, and force-loaded chunks.
Determinism
- Reproducibility of combat and random events: Chest loot generation, mob drops, knockback directions, and raid group spawn positions are fully reproducible.
- Natural spawning: Mob spawning algorithms are aligned with the world seed and time, so repeating the same actions spawns the same creatures.
Client optimizations
- Client chunk cache: The client displays locally cached chunks and lighting while server data synchronizes over the network.
- GPU geometry cache: Compiled chunk geometry is stored in video memory (VRAM), reducing render pipeline stalls during rollbacks.
- Visual adjustments: Smooths camera transitions, resets damage tilt and item-switching animations, and preserves search queries and interface tabs.
Auto-save modes
- Interval mode: Creates checkpoints on a fixed timer or at random intervals within a configured range.
- Adaptive mode: Analyzes surrounding threat levels (player health, attacking mobs, nearby hazards, available escape routes) to create checkpoints before critical danger or after combat ends.
- Boss defeat saves: Automatically saves progress upon defeating the Ender Dragon or Wither.
- Hazard protection: Prevents checkpoint creation in unrecoverable fatal conditions (such as falling into the void or burning in lava).
Multiplayer: Key player system
In multiplayer, rollbacks apply globally across the server. The key player configuration determines whose death triggers a rollback:
- Interactive GUI: In-game interface with a player list to configure modes, cooldowns, and rotation.
- Fixed: Rollback is tied to a single designated player.
- Multi: A list of multiple designated key players.
- Everyone: Death of any online player initiates a global rollback.
- Rotating: The key player role cycles periodically among online players.
- Rollback cooldown: A configurable cooldown between rollbacks to prevent death loops.
- Offline players: If a player disconnects before a rollback, data changes are written directly to their
.datfile on disk, placing them at the checkpoint state upon rejoining.
Commands and controls
Commands:
/rzero set— Manually create a checkpoint./rzero anchor— Open the key player configuration menu./rzero anchor status— Displays the active key player mode, current anchors, and cooldown status./rzero anchor cooldown <seconds>— Sets the rollback cooldown duration after death./rzero anchor mode fixed [player]— Sets a single key player./rzero anchor mode multi <players>— Sets a list of key players./rzero anchor mode everyone— Enables rollbacks for any player death./rzero anchor mode rotating <seconds>— Enables periodic rotation of the key player.
Hotkeys: Keybindings for manual saving, manual rollback, and opening the key player menu can be configured in the standard game controls menu (unbound by default).
Game rules:
rzeroAutoSave— Enables or disables automatic checkpoints.rzeroUseAdaptiveMode— Toggles adaptive save mode.rzeroAdaptiveInterval— Required safety duration before auto-saving in adaptive mode (in seconds).rzeroFixedInterval— Interval between auto-saves in seconds.rzeroUseRandomInterval— Enables random intervals between saves.rzeroRandomIntervalMin/rzeroRandomIntervalMax— Range bounds for random intervals.rzeroPlayRollbackSound— Plays a sound effect during time rewind.
Configuration
Rollback parameters, determinism settings, and client rendering options can be configured via the Cloth Config interface (supporting both standard and advanced display modes).
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
下载 RZero
世界
- 生物群系: 生物群系的更改现在会在客户端颜色更新时回滚。
- 出生点: 通过
/setworldspawn命令做出的世界出生点更改现在会回滚。 - 难度: 世界难度及其锁定状态现在会恢复到检查点状态。
- 计划函数:
/schedule命令的计时器现在会倒带,取消未来的函数调用。 - 时间速度: 通过
/tick命令加速、减速和冻结游戏现在会回滚。
玩家
- 统计数据: 添加了统计数据回滚功能。
客户端
- 声音静音: 改进了声音切断效果。
- 通知清理: 已撤销的进度和配方弹窗现在会立即消失。
性能
- 几何缓存: 恢复工作(在 0.2.9 版本中无法使用)。
- 异步保存: 离线玩家和统计数据文件现在会在后台保存。
配置
- 新选项: 在 Cloth Config 菜单中添加了用于生物群系、出生点、难度、计划、刻率和统计数据的切换开关。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧