跳到正文

BetterSleeping Revived

This mod adds sleep notifications, gives sleeping players buffs and debuffs to the ones who haven't slept in a long time!

收藏

介绍

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

Environment: Server
Chat on Discord

This is a continuation of ExtraCrafTX’s BetterSleeping mod, ported to 1.17+ and rewritten for better compatibility and native support for 1.17’s new playersSleepingPercentage gamerule.

Requires Fabric API

Sleep recovery

Sleep recovery gives players regeneration for 25s when they have slept through the night. This can be adjusted in the config.

No-sleep debuffs

No-sleep debuffs are applied when a player has skipped three nights consecutively without sleeping. The effects get stronger and last longer the more nights the player is awake. This can be enabled or disabled, and the nights before the effect is applied can be configured through the config file as well.

The effects given are:

  • Slowness
  • Weakness
  • Nausea
  • Mining fatigue
  • Blindness

Messages

Messages are sent when a player sleeps, for skipping nights and for debuffs. These can all be configured as well. Each message can have placeholders that are replaced:

  • The night skipped message does not take any placeholders.
  • The players asleep message can take:
  • {asleepPlayers} which is replaced with the number of players asleep
  • {totalPlayers} which is replaced with the total number of players
  • {asleepPercentage} which is replaced with the percentage of players that are asleep
  • {asleepPlayersRequired} which is replaced with the number of players required to skip the night
  • {asleepPercentageRequired} which is replaced with the percentage of players required to skip the night
  • {asleepPlayersAdditionallyNeeded} which is replaced with the number of players additionally needed to sleep to skip the night
  • The debuff message can take {nightsAwake} which is replaced with the number of nights skipped.

The config file also has a formatting field that is used to format the messages. It is a list and can take the names of any of the standard colours and styles. The Minecraft wiki has a full list.

Config

The config file is found in the config folder and is called bettersleeping.toml. This folder should be in the same place as your mods folder (.minecraft for Windows). If this file is deleted the mod will recreate it with the default settings at the next start-up. If you’re in singleplayer, you can also use the in-game configuration menu (via ModMenu)!

常见问题

BetterSleeping Revived 支持哪些 Minecraft 版本?

BetterSleeping Revived 支持 Minecraft Java 版 1.17–1.20.4,共 15 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

BetterSleeping Revived 怎么安装?

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

评论

登录后评论和评分

thefirethirteen 的其他作品

查看全部 →