跳到正文

One PlayerSleep

作者:RobTrap

The One Player Sleep mod enhances sleep management on multiplayer servers by allowing players to easily change the percentage of players required to sleep simultaneously to skip the night.

收藏

介绍

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

One PlayerSleep

The One PlayerSleep mod enhances sleep management on multiplayer servers by allowing players to easily change the percentage of players required to sleep simultaneously to skip the night. This mod is especially useful for servers with many players, where it can be challenging for everyone to sleep at the same time. With this mod, just one player or a configurable percentage of players can sleep to transition from night to day.

Basic Setup

  1. Install the mod on your server
  2. Use /sleep percentage 25 to require only 25% of players to sleep
  3. Players can now sleep to skip the night with fewer participants

Advanced Configuration

/sleep percentage 10    # Only 10% of players need to sleep
/sleep nether on        # Allow sleep in Nether
/sleep messages off     # Disable sleep messages
/sleep reload           # Reload configuration from file
/sleep cooldown clear   # Clear all sleep cooldowns

How It Works

  1. Night Detection: The mod monitors when it’s night time in the world
  2. Player Counting: Counts the total number of players and sleeping players
  3. Percentage Calculation: Calculates required sleepers based on configuration
  4. Cooldown Check: Prevents rapid sleep/wake cycles with configurable cooldowns
  5. Sleep Trigger: When enough players sleep, the night is skipped to day
  6. Auto Wake-up: All sleeping players are automatically woken up
  7. Performance Optimized: Only checks every 20 ticks (1 second) for better performance

This mod provides a simple but powerful way to improve the quality of life on multiplayer servers by reducing the hassle of coordinating sleep.

常见问题

One PlayerSleep 支持哪些 Minecraft 版本?

One PlayerSleep 支持 Minecraft Java 版 1.21–1.21.8,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

One PlayerSleep 怎么安装?

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

评论

登录后评论和评分

RobTrap 的其他作品

查看全部 →