One PlayerSleep 图标

One PlayerSleep

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0-beta1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/oneplayersleep
资源信息

Minecraft 版本: 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8

平台: fabric

标签: game-mechanics optimization utility

资源介绍

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.

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
MoreVanillaTools

价格:0 墨喵币
下载量:0

查看详情
Necronomicon API

价格:0 墨喵币
下载量:0

查看详情
Annoying Villagers: Herobrine Invasion

价格:0 墨喵币
下载量:0

查看详情
Mantle.gg

价格:0 墨喵币
下载量:0

查看详情