Ultimate Sleep
这款高级、一体化且完全由管理员配置的可睡眠模组。它将 ~180 个 Modrinth 上调查过的睡眠模组(去重后为 52 种独特功能)中的有用行为整合到一个模组中,其中所有内容均为可切换项。在单人游戏中,玩家即为管理员;在服务器上,控制权受权限限制。支持 Fabric、NeoForge 和 Forge,涵盖 Minecraft 1.20 至 26.x 版本,并为每个主要版本线提供原生 Paper/Folia 服务器插件。该模组仅需安装在 服务器端 -- 原版客户端可通过聊天/命令使用其功能,并为同样安装了该模组的客户端添加了可选的游戏内面板。
为什么选择 Ultimate Sleep
- 一个模组代替五个。 跳过夜晚、睡眠投票、自动睡眠、AFK 处理、醒来奖励、睡眠规则覆盖和世界进度推进 -- 你通常需要堆叠多个独立睡眠模组才能拥有的所有行为,都集中在此处,每一项都是一个独立的开关。
- 可预测的夜晚。 该模组掌控每一次跳过;原版游戏无法自行跳过夜晚,因此你配置的行为就是实际发生的行为。
- 零客户端要求。 仅在服务器安装,即可满足所有玩家的需求 -- 原版客户端通过聊天和
/usleep 命令获得全部功能。
- 为需要者提供可选 GUI。 同时安装了该模组客户端的玩家可以通过
/usleep gui 获得游戏内控制面板。
- 无需 OP 权限即可委托管理。 指定的睡眠管理员可以配置所有内容,无需操作员(OP)级别权限。
下载
在 Modrinth 获取 Ultimate Sleep:
睡眠功能
夜晚跳过引擎
核心部分。设置 requirement_mode 可选择如何跳过夜晚。
- SIMPLE 模式(百分比)。 当足够多的合格玩家入睡时触发跳过。阈值为
required_sleep_percentage(例如:在线 4 人中的 50% = 需要 2 人入睡)。无需投票 -- 只需入睡,一旦人数达标,夜晚即会过去。
- VOTE 模式。 第一个爬上床的玩家会自动启动全服投票(以免有人独自躺在床上等待)。所有非 AFK 玩家在倒计时窗口内进行投票;结果根据所选的通过规则统计,若通过则跳过夜晚。
- 通过
/usleep yes / /usleep no(适用于任何客户端)或屏幕上的提示进行投票。
- 在投票期间上床算作自动投 YES 票。
- 通过规则 (
vote_pass_rule):MAJORITY_CAST(赞成票多于反对票)、PERCENT_CAST(赞成票达到已投票数的 vote_pass_percentage),或 MAJORITY_NON_AFK(所有非 AFK 玩家的多数 -- 默认值)。
- 该模组掌控每一次跳过。 服务器端的门控机制会阻止原版自身的睡眠检查,使得游戏 永远 无法自行跳过夜晚 -- 即使所有玩家都挤在床上。只有当 Ultimate Sleep 决定应该跳过时,夜晚才会推进,从而保持行为的可预测性。该模组也是唯一的发声者 -- 原版的 "x/y sleeping" 消息会被抑制。
跳过行为(触发后的执行方式)
- INSTANT(瞬间)。 直接跳到早晨(原版风格)。
- ACCELERATE(加速)。 不直接跳转,而是通过驱动主世界时钟速率来快进夜晚,提供四种命名速度(Slow / Slowish / Quick / Fast = 约 10 / 7.5 / 5 / 2.5 真实秒数)。
- 保留天气。 可选择在跳过期间保持降雨/暴风雨持续,而不是清除它们。
自动睡眠
- 按玩家启用。 通过
/usleep auto 开启;该选择按玩家保存。此功能由 auto_sleep_enabled 进行管理员门控(默认开启)。
- 黄昏自动上床。 在最早的可睡眠时间,如果床在可达范围内,服务器会自动让已启用的玩家上床 -- 就像他们右键点击了床一样。
- 家床目标。 优先选择可达的家出生点床,否则选择最近的可达床。
- Travelers' Backpack 睡袋(软依赖 -- 运行时检测,无编译依赖)。当没有可达的床时,自动睡眠可以使用松散的睡袋物品或附着在穿戴的 Travelers' Backpack 上的袋子就地睡觉;醒来时会移除放置的袋子。
- 错过睡眠通知。 当既没有床也没有睡袋在可达范围内时发出通知。
AFK 系统
- 自动 AFK。 在
afk_threshold_seconds 空闲(无移动/注视)后自动进入 AFK 状态,并带有手动 /usleep afk 切换开关。任何非卧床的移动都会清除 AFK 状态;躺在床上不会清除。
- 管理员强制 AFK。 使用
/usleep admin afk <player> 强制某玩家进入 AFK 状态。
- 条件性
/afk 别名。 如果没有其他模组已经提供 /afk,Ultimate Sleep 会将 /afk 注册为 /usleep afk 的直接别名。如果其他模组占用了它,我们将退让。
- 为引擎提供数据。 AFK 玩家可以被排除在睡眠要求之外 (
exclude_afk_from_requirement),且不参与投票也不显示投票提示。
醒来奖励
在成功睡眠/跳过夜晚后发放;每项均为独立的管理员开关,可任意组合使用。
- 再生效果。 持续
reward_regeneration_minutes(默认 5 分钟)。
- 金胡萝卜。 每次醒来一个;如果背包已满,它会 掉落在你脚边,确保永远不会丢失。
- 速度提升。 提升
reward_speed_boost_percent%(默认 25%),持续 reward_speed_boost_minutes(默认 5 分钟)。通过原版速度等级应用,因此百分比仅为近似值。
无障碍 / 睡眠规则覆盖
- 随时睡眠。 绕过使用床时的白天/时间限制。
- 忽略怪物。 即使附近有敌对生物也可以睡觉。
- 忽略“床太远”。 进入床时跳过距离检查。
- 高亮显示阻挡生物。 勾勒出那些会阻止你睡觉的生物,仅对你可见(带有定时还原效果的逐观察者发光)。
睡眠期间的世界进度推进
跳过夜晚可以选择性地推进世界,而不仅仅是时钟。一个总开关 (world_progression_enabled) 加上每类别的子开关,以便管理员控制性能成本。
- 作物与植物 -- 作物生长、树苗/树木生长以及植物生长。
- 畜牧业 -- 繁殖冷却时间和幼年动物成长。
- 熔炼 -- 熔炉、烟熏炉和高炉继续运作。
- 消失计时器 -- 物品/实体消失计时器推进(默认关闭)。
睡眠可见性与反馈
- 聊天中的睡眠状态 (
show_sleepers_in_chat) -- 当玩家开始/停止睡眠时,发送简短广播,例如 <name> is sleeping, 1 of 2 required. Need 1 more.。这也为没有 UI 的 vanilla 客户端提供服务。
- 非阻塞投票提示 -- 屏幕底部的动作栏消息(永远不会是阻塞式界面,因此游戏过程永远不会冻结),以及私人的“你的票生效了 / 你被多数票否决”结果。
- 实时投票统计 (
show_sleepers_on_vote_screen) -- 投票提示还可以显示当前的赞成/反对计数以及当前在床上的人。
- 醒来公告 (
notify_wake) -- 夜晚跳过后的简短广播,让每个人都知道清晨已至。
游戏内管理面板(可选客户端 UI)
- 服务器驱动的面板 通过
/usleep gui 打开。服务器向拥有该模组的客户端推送打开请求和当前配置;客户端渲染一个分页控制面板(共 9 页),并通过受权限检查的私有后台通道写回更改。没有安装该模组的客户端则直接使用命令。
灵活的设置输入
- 宽容的值。 布尔值接受
true/yes/1/on 和 false/no/0/off(不区分大小写);百分比接受 50、50%、1/2 或 0.5。每个 set 都会将解析后的值确认返回给你。
- 选项卡补全 支持设置键名和值。
设置参考
类型化(布尔 / 整数 / 枚举 / 百分比),JSON 持久化。每位玩家的状态(AFK 状态、自动睡眠 opt-in、主床)是运行时玩家数据,不包含在此全局表中。
| key |
type |
default |
| enabled |
bool |
true |
| requirement_mode |
SIMPLE | VOTE |
SIMPLE |
| required_sleep_percentage |
percent |
50 |
| exclude_afk_from_requirement |
bool |
true |
| vote_duration_seconds |
int |
30 |
| vote_pass_rule |
MAJORITY_CAST | PERCENT_CAST | MAJORITY_NON_AFK |
MAJORITY_NON_AFK |
| vote_pass_percentage |
percent |
50 |
| skip_mode |
INSTANT | ACCELERATE |
INSTANT |
| accelerate_speed |
SLOW | SLOWISH | QUICK | FAST |
QUICK |
| preserve_weather |
bool |
false |
| sleep_anytime |
bool |
false |
| sleep_ignore_monsters |
bool |
false |
| ignore_bed_too_far |
bool |
false |
| highlight_blocking_mobs |
bool |
false |
| show_sleepers_in_chat |
bool |
true |
| show_sleepers_on_vote_screen |
bool |
true |
| notify_wake |
bool |
true |
| reward_regeneration |
bool |
false |
| reward_regeneration_minutes |
int |
5 |
| reward_golden_carrot |
bool |
false |
| reward_speed_boost |
bool |
false |
| reward_speed_boost_percent |
percent |
25 |
| reward_speed_boost_minutes |
int |
5 |
| world_progression_enabled |
bool |
false |
| progress_crops |
bool |
true |
| progress_animal_husbandry |
bool |
true |
| progress_smelting |
bool |
true |
| progress_despawn_timers |
bool |
false |
| auto_sleep_enabled |
bool |
true |
| afk_threshold_seconds |
int |
180 |
| provide_afk_command |
bool |
true |
命令
所有命令均以 /usleep 开头。玩家和信息类命令对所有人开放;配置命令需要权限。指定的 sleep-admin 不需要管理员等级,在处理 Ultimate Sleep 的所有命令时被视为 op-4,因此所有者可以委派睡眠配置而无需发放 vanilla 管理员权限。
打开控制面板
/usleep gui -- 打开游戏内管理面板。需要 Ultimate Sleep 客户端模组;vanilla 客户端改用下方的聊天命令。
日常玩家命令(所有人)
/usleep status -- 简短状态行:模式、需求百分比和当前 AFK 计数。
/usleep query -- 完整设置转储(key = value)以及当前谁拥有 /afk。
/usleep afk -- 切换你自己的 AFK 状态。
/afk -- /usleep afk 的别名,仅在没有其他模组已提供此命令时注册。
/usleep auto -- 切换你个人的自动睡眠 opt-in。
- 仅在管理员开启
auto_sleep_enabled 时可用。
睡眠投票期间(VOTE 模式,投票进行中)
/usleep yes -- 投票跳过夜晚。
/usleep no -- 投票反对跳过。
更改设置(sleep-admin,或 op 等级 2+)
/usleep set <key> <value> -- 更改设置。设置键名支持选项卡补全,一旦输入键名,布尔/枚举值也支持选项卡补全。
管理操作(sleep-admin,或 op 等级 3+)
/usleep admin set <key> <value> -- 在管理级别更改任何设置。
/usleep admin afk <player> -- 强制另一名玩家进入 AFK。
/usleep admin admins -- 管理 sleep-admin 名单:
/usleep admin admins add <player> -- 授予某玩家 sleep-admin 权限。
/usleep admin admins remove <player> -- 撤销某玩家的 sleep-admin 权限。
/usleep admin admins list -- 列出当前的 sleep-admins。
源代码
完整的跨加载器源代码(含构建说明)位于
minecraft-1.20-26.3 branch。
报告问题 / 支持
请在共享的支持中心提交错误报告和功能请求:
许可证
All Rights Reserved (c) Kishku7.
Ultimate Sleep
The advanced, all-in-one, fully admin-configurable sleep mod. It folds the useful
behaviors from ~180 surveyed Modrinth sleep mods (deduped to 52 distinct features) into a
single mod where everything is a toggle. In singleplayer the player is the admin; on a
server the controls are permission-gated. Ships for Fabric, NeoForge, and Forge across
Minecraft 1.20 through 26.x, plus a native Paper/Folia server plugin for each major line. The mod is required on the server only -- it works for
vanilla clients via chat/commands, and adds an optional in-game panel for clients that
also have it.
Why Ultimate Sleep
- One mod instead of five. Night-skip, sleep voting, auto-sleep, AFK handling, wake
rewards, sleep-rule overrides, and world progression -- every behavior you would
normally stack separate sleep mods for, in one place, each one a toggle.
- Predictable nights. The mod owns every skip; vanilla can never skip the night on
its own, so the behavior you configure is the behavior you get.
- Zero client requirement. Install it on the server and every player is fully served
-- vanilla clients get everything through chat and
/usleep commands.
- Optional GUI for those who want it. Players who also install the mod client-side
get an in-game control panel via
/usleep gui.
- Delegate without op. A designated sleep-admin can configure everything with no
operator level.
Download
Get Ultimate Sleep on Modrinth:
Sleep features
Night-skip engine
The core. One setting, requirement_mode, picks how a night gets skipped.
- SIMPLE mode (percentage). A skip fires when enough eligible players are asleep. The
threshold is
required_sleep_percentage (e.g. 50% of 4 players online = 2 needed). No voting
-- just sleep and the night passes once the count is met.
- VOTE mode. The first player to climb into a bed auto-starts a server-wide vote (so nobody
waits in bed alone). Everyone non-AFK votes during a countdown window; the result is tallied by
the chosen pass rule and the night skips on a pass.
- Vote via
/usleep yes / /usleep no (works on any client), or with the on-screen prompt.
- Getting into a bed mid-vote counts as an automatic YES.
- Pass rules (
vote_pass_rule): MAJORITY_CAST (yes > no), PERCENT_CAST (yes reaches
vote_pass_percentage of votes cast), or MAJORITY_NON_AFK (majority of all non-AFK
players -- the default).
- The mod owns every skip. A server-side gate stops vanilla's own sleep check so the game
can never skip the night on its own -- even if every player piles into bed. The night
advances only when Ultimate Sleep decides it should, which keeps behavior predictable. The mod
is also the sole voice -- vanilla's own "x/y sleeping" message is suppressed.
Skip behavior (how the triggered skip is carried out)
- INSTANT. Jump straight to morning (vanilla-style).
- ACCELERATE. Time-lapse the night instead of jumping, by driving the overworld clock rate,
at one of four named speeds (Slow / Slowish / Quick / Fast = ~10 / 7.5 / 5 / 2.5 real seconds).
- Preserve weather. Optionally keep rain/storms running across the skip instead of clearing
them.
Auto-sleep
- Per-player opt-in with
/usleep auto; the choice is saved per player. The feature is
admin-gated by auto_sleep_enabled (on by default).
- Dusk auto-bed. At the earliest sleepable time, the server puts opted-in players to bed
automatically if a bed is within reach -- exactly as if they'd right-clicked it.
- Home-bed targeting. Prefers your own spawn bed when it is reachable, otherwise the nearest
reachable bed.
- Travelers' Backpack sleeping bag (soft dependency -- runtime-detected, no compile
dependency). When no bed is reachable, auto-sleep can sleep in place using a loose sleeping-bag
item or a bag attached to a worn Travelers' Backpack; the placed bag is removed on wake.
- Missed-sleep notice when neither a bed nor a sleeping bag is in reach.
AFK system
- Automatic AFK after
afk_threshold_seconds idle (no move/look), plus a manual /usleep afk
toggle. Any non-bed movement clears AFK; lying in bed does not.
- Admin force-AFK a player with
/usleep admin afk <player>.
- Conditional
/afk alias. If no other mod already provides /afk, Ultimate Sleep registers
/afk as a direct alias of /usleep afk. If another mod owns it, we stand down.
- Feeds the engine. AFK players can be excluded from the sleep requirement
(
exclude_afk_from_requirement) and get no vote and no vote prompt.
Rewards on waking
Granted on a successful sleep/skip; each is an independent admin toggle, usable in any combo.
- Regeneration for
reward_regeneration_minutes (default 5).
- Golden carrot -- one per wake; drops at your feet if your inventory is full so it's
never lost.
- Speed boost of
reward_speed_boost_percent% (default 25) for reward_speed_boost_minutes
(default 5). Applied via vanilla Speed levels, so the percentage is approximate.
Accessibility / sleep-rule overrides
- Sleep anytime -- bypass the day/time restriction on using a bed.
- Ignore monsters -- sleep even with hostile mobs nearby.
- Ignore "bed too far" -- skip the distance check when entering a bed.
- Highlight blocking mobs -- outline the monsters that would stop you sleeping, visible only
to you (a per-viewer glow with a timed revert).
World progression while sleeping
Skipping the night can optionally advance the world, not just the clock. A master toggle
(world_progression_enabled) plus per-category sub-toggles so admins can scope the performance
cost.
- Crops & plants -- crop growth, saplings/tree growth, and plant growth.
- Animal husbandry -- breeding cooldowns and baby-animal growth.
- Smelting -- furnaces, smokers, blast furnaces continue.
- Despawn timers -- item/entity despawn timers advance (off by default).
Sleeper visibility & feedback
- Sleep status in chat (
show_sleepers_in_chat) -- a concise broadcast as players start/stop
sleeping, e.g. <name> is sleeping, 1 of 2 required. Need 1 more. This also serves vanilla
clients with no UI.
- Non-blocking vote prompt -- a bottom-of-screen action-bar message (never a blocking screen,
so gameplay is never frozen) plus a private "your vote carried / you were outvoted" result.
- Live vote tally (
show_sleepers_on_vote_screen) -- the vote prompt can also show the running
yes/no count and who is currently in bed.
- Wake announcement (
notify_wake) -- a short broadcast once the night has been skipped, so
everyone knows morning has arrived.
In-game admin panel (optional client UI)
- Server-driven panel opened with
/usleep gui. The server pushes the open request and the
current config to a client that has the mod; the client renders a paginated control panel
(9 pages) and writes changes back over a private, permission-checked back-channel. Clients
without the mod simply use the commands instead.
Flexible settings input
- Forgiving values. Booleans accept
true/yes/1/on and false/no/0/off (case-insensitive);
percentages accept 50, 50%, 1/2, or 0.5. Every set confirms the resolved value back to
you.
- Tab completion for setting keys and values.
Settings reference
Typed (bool / int / enum / percent), JSON-persisted. Per-player state (AFK status, auto-sleep
opt-in, home bed) is runtime player data, not in this global table.
| key |
type |
default |
| enabled |
bool |
true |
| requirement_mode |
SIMPLE | VOTE |
SIMPLE |
| required_sleep_percentage |
percent |
50 |
| exclude_afk_from_requirement |
bool |
true |
| vote_duration_seconds |
int |
30 |
| vote_pass_rule |
MAJORITY_CAST | PERCENT_CAST | MAJORITY_NON_AFK |
MAJORITY_NON_AFK |
| vote_pass_percentage |
percent |
50 |
| skip_mode |
INSTANT | ACCELERATE |
INSTANT |
| accelerate_speed |
SLOW | SLOWISH | QUICK | FAST |
QUICK |
| preserve_weather |
bool |
false |
| sleep_anytime |
bool |
false |
| sleep_ignore_monsters |
bool |
false |
| ignore_bed_too_far |
bool |
false |
| highlight_blocking_mobs |
bool |
false |
| show_sleepers_in_chat |
bool |
true |
| show_sleepers_on_vote_screen |
bool |
true |
| notify_wake |
bool |
true |
| reward_regeneration |
bool |
false |
| reward_regeneration_minutes |
int |
5 |
| reward_golden_carrot |
bool |
false |
| reward_speed_boost |
bool |
false |
| reward_speed_boost_percent |
percent |
25 |
| reward_speed_boost_minutes |
int |
5 |
| world_progression_enabled |
bool |
false |
| progress_crops |
bool |
true |
| progress_animal_husbandry |
bool |
true |
| progress_smelting |
bool |
true |
| progress_despawn_timers |
bool |
false |
| auto_sleep_enabled |
bool |
true |
| afk_threshold_seconds |
int |
180 |
| provide_afk_command |
bool |
true |
Commands
Everything lives under /usleep. The player and informational commands are open to everyone;
the configuration commands are permission-gated. A designated sleep-admin needs no operator
level and is treated as op-4 for every Ultimate Sleep command, so owners can delegate sleep
configuration without handing out vanilla operator.
Open the control panel
/usleep gui -- open the in-game admin panel. Requires the Ultimate Sleep client mod; vanilla
clients use the chat commands below instead.
Everyday player commands (everyone)
/usleep status -- short status line: mode, requirement percentage, and current AFK count.
/usleep query -- full settings dump (key = value) plus who currently owns /afk.
/usleep afk -- toggle your own AFK state.
/afk -- alias of /usleep afk, registered only when no other mod already provides it.
/usleep auto -- toggle your personal auto-sleep opt-in.
- Available only while the admin has
auto_sleep_enabled turned on.
During a sleep vote (VOTE mode, while a vote is running)
/usleep yes -- vote to skip the night.
/usleep no -- vote against skipping.
Change settings (sleep-admin, or op level 2+)
/usleep set <key> <value> -- change a setting. Setting keys tab-complete, and boolean/enum
values tab-complete once a key is typed.
Administration (sleep-admin, or op level 3+)
/usleep admin set <key> <value> -- change any setting at the administration tier.
/usleep admin afk <player> -- force another player into AFK.
/usleep admin admins -- manage the sleep-admin roster:
/usleep admin admins add <player> -- grant sleep-admin to a player.
/usleep admin admins remove <player> -- revoke a player's sleep-admin.
/usleep admin admins list -- list the current sleep-admins.
Source code
The full multi-loader source (with build instructions) lives on the
minecraft-1.20-26.3 branch.
Report issues / Support
Please file bug reports and feature requests at the shared support hub:
License
All Rights Reserved (c) Kishku7.
评论 0
登录后参与评分
还没有评论,来抢沙发吧