跳到正文

Sleep Poll

作者:Z1co

SleepPoll(sleep vote) is a Minecraft Fabric mod that introduces a voting system for skipping the night. When a player enters a bed, a poll is created, allowing all online players to vote on whether to skip the night or keep it.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

📘 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

Skip night bossbar

✔ 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

Skipping Night 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

Voting Buttons

2. Poll Progress Bossbar (Example 1 / 2)

Vote bossbar

3. Poll Completion / Night-Skipped Message

Vote completed

4. Night Skipping Animation

Progress bossbar


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

常见问题

Sleep Poll 支持哪些 Minecraft 版本?

Sleep Poll 支持 Minecraft Java 版 1.21.4–26.3,共 6 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Sleep Poll 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Z1co 的其他作品

查看全部 →