
这是 ExtraCrafTX 的 BetterSleeping 模组的延续版本,已移植至 1.17+ 并进行了重写,以提供更好的兼容性和对 1.17 新增的 playersSleepingPercentage 游戏规则的本地支持。
睡眠恢复
当玩家度过一个完整的夜晚后,睡眠恢复功能会给予玩家持续 25 秒的生命再生效果。此设置可在配置文件中调整。
不睡觉的负面效果
如果玩家连续三个夜晚没有睡觉,将会施加不睡觉的负面效果。随着玩家醒着的夜晚增多,这些效果的强度会增加且持续时间更长。此功能可以启用或禁用,并且触发效果前的夜晚数也可以在配置文件中配置。
所施加的效果包括:
- 缓慢
- 虚弱
- 恶心
- 挖掘疲劳
- 失明
消息
当玩家睡觉、跳过夜晚或获得负面效果时,会发送相应的消息。这些消息都可以进行配置。每条消息都可以包含将被替换的占位符:
- 跳过夜晚的消息不使用任何占位符。
- 玩家入睡的消息可以使用以下占位符:
{asleepPlayers}将被替换为入睡的玩家数量{totalPlayers}将被替换为玩家总数{asleepPercentage}将被替换为入睡玩家的百分比{asleepPlayersRequired}将被替换为跳过夜晚所需的玩家数量{asleepPercentageRequired}将被替换为跳过夜晚所需的玩家百分比{asleepPlayersAdditionallyNeeded}将被替换为为了跳过夜晚还需要额外入睡的玩家数量
- 负面效果消息可以使用
{nightsAwake},它将被替换为跳过的夜晚数量。
配置文件还包含一个格式化字段,用于设置消息的格式。它是一个列表,可以接受标准颜色和样式名称。Minecraft 维基提供了 完整列表。
配置文件
配置文件位于 config 文件夹中,名为 bettersleeping.toml。该文件夹应与你的 mods 文件夹位于同一位置(Windows 下为 .minecraft)。如果删除此文件,模组将在下次启动时使用默认设置重新创建它。如果你处于单人模式,还可以使用游戏内的配置菜单(通过 ModMenu)!

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.
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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterSleeping Revived
下载 BetterSleeping Revived
- 将链接替换为
minecraft.wiki,而非旧的 Fandom wiki - 新增对 Minecraft 1.20 至 1.20.4 的支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧