? SleepPoll — Fabric 模组 (Minecraft 1.21.11)
一个轻量级的服务端投票系统,用于在多人游戏中跳过夜晚。
描述
SleepPoll 是一个服务端的 Fabric 模组,它用公平的投票系统替代了原版跳夜机制。
当一名玩家进入床铺时,模组会自动创建一个投票。
所有在线玩家都可以使用可点击的聊天按钮投出 YES(同意) 或 NO(反对)。
只有当以下三者的支持总和满足或超过由 playersSleepingPercentage 游戏规则定义的百分比时,夜晚才会被跳过:
- 正在睡觉的玩家
- 投 YES 票的玩家
- AFK 玩家 / 未投票的玩家将在投票结束时自动投 YES
SleepPoll 还会阻止原版提前跳夜,并使用平滑的 10 秒过渡效果取而代之。
非常适合希望公平性和社区驱动控制夜间周期的多人服务器。
功能
✔ 跳夜投票系统
- 当有玩家进入床铺时,投票会自动开始。
- 所有玩家都可以通过命令或可点击的消息进行投票。
- 睡觉的玩家会自动算作 YES 支持者。
✔ 可点击的投票界面
玩家会收到交互式的聊天按钮:
[Vote YES] [Vote NO]
✔ Bossbar 进度指示器
显示:
- 所需支持者数量 vs. 实际支持者数量
- 30 秒倒计时计时器
- 成功后显示的“Skipping Night…”动画

✔ 基于 PlayerSleepingPercentage 游戏规则
- 完全尊重你配置好的睡眠百分比。
- 投票期间禁用原版的睡觉跳夜功能(投票结束后恢复)。
✔ 平滑的跳夜效果
不是瞬间跳到白天:
- 时间会在 10 秒内逐渐推进
- Bossbar 显示实时的跳夜进度

✔ 自动重置失眠症
当通过投票跳过夜晚时,投 YES 票的玩家会重置其幻象失眠症。
✔ 对服务器友好
- 仅服务端(无需客户端模组)
- 适用于任意数量的玩家
- 与大多数其他模组兼容
? 截图
1. 聊天中的投票按钮

2. 投票进度 Bossbar(示例 1 / 2)

3. 投票完成 / 已跳过夜晚的消息

4. 跳夜动画

命令
| 命令 |
描述 |
/vote yes |
投 YES 票 |
/vote no |
投 NO 票 |
也可以通过可点击的聊天按钮进行投票。
游戏规(Gamerule)支持
| 游戏规 |
描述 |
playersSleepingPercentage |
跳过夜晚所需的百分比 |
示例:
/gamerule playersSleepingPercentage 60
? SleepPoll — Fabric Mod (Minecraft 1.21.11)
A lightweight, server-side voting system for skipping the night in multiplayer.
Description
SleepPoll is a server-side Fabric mod that replaces vanilla night skipping with a fair voting system.
When a player enters a bed, the mod automatically creates a poll.
All online players can vote YES or NO using clickable chat buttons.
The night is skipped only if the combined support of:
- Sleeping players
- Players who vote YES
- AFK Players / Players that didn't vote will automatically vote yes at the end of the poll
meets or exceeds the percentage defined by the playersSleepingPercentage gamerule`.
SleepPoll also prevents vanilla from skipping the night prematurely and uses a smooth 10-second transition instead.
Perfect for multiplayer servers that want fairness and community-driven control over the night cycle.
Features
✔ Night Skip Voting System
- A poll automatically begins when a player enters a bed.
- All players can vote via commands or clickable messages.
- Sleeping players count automatically as YES supporters.
✔ Clickable Voting UI
Players receive interactive chat buttons:
[Vote YES] [Vote NO]
✔ Bossbar Progress Indicator
Shows:
- Supporters required vs. actual supporters
- A 30-second countdown timer
- A “Skipping Night…” animation after success

✔ Based on PlayerSleepingPercentage Gamerule
- Fully respects your configured sleep percentage.
- Vanilla sleeping is disabled during a poll (restored afterward).
✔ Smooth Night Skipping
Instead of instantly jumping to day:
- Time advances over 10 seconds
- A bossbar shows real-time skip progress

✔ Automatic Insomnia Reset
YES voters get their phantom insomnia reset when the night is skipped by vote.
✔ Server-Friendly
- Server-side only (no client mod needed)
- Works with any number of players
- Compatible with most other mods
? Screenshots
1. Voting Buttons in Chat

2. Poll Progress Bossbar (Example 1 / 2)

3. Poll Completion / Night-Skipped Message

4. Night Skipping Animation

Commands
| Command |
Description |
/vote yes |
Casts a YES vote |
/vote no |
Casts a NO vote |
Voting is also available through clickable chat buttons.
Gamerule Support
| Gamerule |
Description |
playersSleepingPercentage |
Percentage required to skip the night |
Example:
/gamerule playersSleepingPercentage 60
评论 0
登录后参与评分
还没有评论,来抢沙发吧