Slumber
在睡眠中推进进度。Slumber 会在所有玩家睡觉时加速整个服务器的 tick —— 不仅仅是时间流逝,还包括方块、实体、方块实体、随机 tick、计划更新、天气、袭击……所有维度中的内容都会在睡眠期间同步推进。
功能特性
- 全地图 tick: 运行额外的完整 tick,使方块、实体和计划得以推进。
- 支持所有维度: 适用于所有已加载的维度(主世界、下界、末地以及模组添加的维度)。
- 服务器与单人模式兼容: 既可在专用服务器上运行,也可在集成单人模式中生效。
- 全员睡眠触发: 仅当所有非旁观者玩家都在睡觉时才会激活。
- 非瞬间跳过: 模拟过程中会暂时禁用原版夜晚跳过机制;模拟结束后恢复原状。
- 可配置速度: 通过 gamerule 控制,便于快速调整不同世界的加速倍率。
配置说明
- Gamerule
slumberTickMultiplier(整数,默认值为20):- 所有玩家睡觉时的总服务器 tick 乘数。
- 示例:
20→ 每个服务器 tick 包含 1 个正常 tick + 19 个额外 tick(约等于 20 倍速)。 - 最低有效值为
1(即无加速效果)。
命令
- 设置乘数:
/gamerule slumberTickMultiplier 30 - 查看当前值:
/gamerule slumberTickMultiplier
依赖要求
- Minecraft: 1.21.1 及以上版本
- 加载器: NeoForge、Forge 或 Fabric(需与你的 MC 版本匹配)
安装方法
- 客户端(单人/LAN): 将 JAR 文件放入你的
mods/文件夹中。 - 服务器端: 将 JAR 文件放入服务器的
mods/文件夹中。所有连接客户端只需加入一个安装了该模组的服务器即可;此模组仅在服务端运行,不会添加任何物品或方块。
性能注意事项
- 乘数成本:
slumberTickMultiplier的值越高,每真实秒内需要处理的工作量越大。若使用较大的乘数且存在大量已加载区块,可能会影响 MSPT(每刻毫秒数)。 - 建议设置: 从
20开始尝试并根据实际情况调整。如果服务器在睡眠期间接近 50+ MSPT,请考虑降低乘数值。
多人游戏行为
- 激活规则: 服务器中所有非旁观者玩家必须处于睡眠状态。在此检测中忽略旁观者玩家。
- 部分睡眠情况: 如果有任何非旁观者玩家未入睡,Slumber 不会生效,此时遵循原版行为。
兼容性
- 设计为非侵入式:通过事件钩子运行额外的世界 tick,无需核心模组修改。
- 应与大多数模组兼容。但一些极其依赖 tick 的重型模组可能会放大高乘数带来的性能开销。
常见问题
- 这会改变战利品或游戏规则吗? 不会。它仅改变所有玩家睡觉时运行的世界 tick 数量。
- 它会立即强制进入白天吗? 不会。在模拟期间会抑制原版的快速前进机制。一旦自然达到白天(或有玩家醒来),便会恢复原始阈值并继续执行原版逻辑。
- 它只影响主世界吗? 不会。所有已加载的维度都会以相同方式参与 tick 计算。
贡献指南
欢迎提交 Issue 和 PR。如遇性能问题或兼容性问题,请提供日志及复现步骤。
Slumber
Sleep with progress. Slumber accelerates the entire server tick while everyone sleeps — not just time-of-day. Blocks, entities, block entities, random ticks, scheduled updates, weather, raids… everything advances across all dimensions during sleep.
Features
- Full world ticking: Runs extra full ticks so blocks, entities, and schedules progress.
- All dimensions: Applies to every loaded dimension (Overworld, Nether, End, modded).
- Server + singleplayer: Works on dedicated servers and integrated singleplayer.
- All-players requirement: Only activates when all non‑spectator players are sleeping.
- No instant skip: Temporarily disables vanilla night‑skip while simulating; restores it after.
- Configurable speed: Controlled by a gamerule for quick per‑world tuning.
Configuration
- Gamerule
slumberTickMultiplier(integer, default20): - Total server tick multiplier while all players sleep. - Example:20→ 1 normal tick + 19 extra ticks per server tick (≈20× speed). - Minimum effective value is1(no acceleration).
Commands
- Set multiplier:
/gamerule slumberTickMultiplier 30 - Read current:
/gamerule slumberTickMultiplier
Requirements
- Minecraft: 1.21.1+
- Loader: NeoForge, Forge, or Fabric (matching your MC version)
Installation
- Client (singleplayer/LAN): Drop the JAR into your
mods/folder. - Server: Drop the JAR into the server’s
mods/folder. All connected clients only need to join a modded server; this mod runs server‑side and does not add items/blocks.
Performance Notes
- Multiplier cost: The higher the
slumberTickMultiplier, the more work per real‑time second. Large multipliers with many loaded chunks can impact MSPT. - Recommendation: Start with
20and adjust. Consider reducing if the server approaches 50+ MSPT during sleep.
Multiplayer Behavior
- Activation rule: Every non‑spectator player in the server must be sleeping. Spectators are ignored for this check.
- Partial sleep: If any non‑spectator is awake, Slumber does nothing and vanilla behavior applies.
Compatibility
- Designed to be non‑invasive: it uses event hooks to run extra world ticks, without coremodding.
- Should be compatible with most mods. Extremely heavy tick‑based mods may amplify the cost of higher multipliers.
FAQ
- Does this change loot or gameplay rules? No. It only changes how many world ticks run while everyone sleeps.
- Does it force morning instantly? No. Vanilla fast‑forward is suppressed during the simulation. Once it’s naturally day (or someone wakes), the original threshold is restored and vanilla proceeds.
- Does it affect only Overworld? No. All loaded dimensions tick equally.
Contributing
Issues and PRs are welcome. Please include logs and steps to reproduce performance or compatibility problems.
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
下载 Slumber
- 更新至 1.21.10
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧