根据你在 Minecraft 小时数中睡眠的时长,在睡眠时进行恢复。长时间不睡觉意味着你无法获得「休息良好」增益效果,但睡太多也会让你醒来时昏昏沉沉!
Healthy Sleep 专为那些在你睡觉时加速时间的模组设计,不过它们并非必需。
适用于 Minecraft 1.21-1.21.3
演示视频使用 Better Days by wendall911 录制,用于在睡眠期间加速时间。
功能
睡眠恢复
睡眠 4 个 MC 小时可恢复 2 颗心。睡眠 6 个 MC 小时可恢复 4 颗心。获得完整的 8 个 MC 小时睡眠将恢复 8 颗心。睡眠恢复独立于你的「睡眠评分」。
睡眠评分
每位玩家会根据其已睡的 MC 小时数被分配一个「睡眠评分」。当你清醒时,睡眠评分会衰减;当你睡觉时,它会上升,最高可达相当于 14 个 MC 小时的值。
休息良好与闹钟
当你收到“我相当累了...”的通知时,意味着如果你睡满一整晚,你将获得「休息良好」增益效果!(幸运 5 分钟,速度 + 急迫 2.5 分钟)但要小心,如果你错过了闹钟并睡过头了,你就不会获得该增益,并且必须等到再次感到疲倦时才具备获取该增益的资格。
无法入睡与过度睡眠
你不能整天躺在床上!如果你的「睡眠评分」已满,你会醒来时昏昏沉沉并错失增益效果。而且如果你的「睡眠评分」已满,你将无法入睡!(此功能旨在与允许在白天睡觉的模组配合使用)
服务端运行
此数据包可以在服务端运行,除非在单人游戏中使用,否则不需要安装在客户端。模组版本是数据包的自动打包版本,用于 Fabric 等加载器。
兼容性
时间加速(完全兼容)
Healthy Sleep 旨在与那些在玩家睡觉时加速时间的模组配合使用,例如:
时间跳过(部分兼容)
当睡觉时跳过时间,Healthy Sleep 大部分情况下仍能正常工作。闹钟将无法使用,并且在使用此类睡眠行为时,过度睡眠可能会频繁触发:
更改昼夜长度(不兼容)
Healthy Sleep 要求 Minecraft 的一天为 24000 tick 长。加快这一过程的速度是可以的,缩短它则不行,因此某些更改昼夜长度的模组可能可以工作,具体取决于它们的实现方式。(我猜 Better Days 可以工作,但我尚未测试)
Healthy Sleep 的未来
功能
- 疲惫度 - 长时间不睡觉会导致减益效果,直到你睡够足够的时间来清除它们。
- 用户配置 - 可能会添加游戏内配置命令
更新
只有在我需要的时候才会做,这意味着大概率不会。欢迎解压数据包并自行尝试!几乎每个命令都有注释解释其功能,便于修改。
我是为我的私人角色扮演服务器制作的,所以我只会在有利于该服务器的情况下花时间添加功能。同样,欢迎你自己尝试添加!
联系 Exterminator。
Healing when you sleep based on how long (in MC hours) you slept. Not sleeping for a long time means you can't get the Well Rested buff, but sleep too much and you'll wake up groggy!
Healthy Sleep is designed for mods that accelerate time when you sleep, however they are not required.
Works on Minecraft 1.21-1.21.3
Demo recorded using Better Days by wendall911 to accelerate time while sleeping.
Features
Sleep Healing
Sleeping for 4 MC hours will heal 2 hearts. Sleeping for 6 MC hours will heal 4 hearts. Getting a full 8 MC hours of sleep will heal 8 hearts. Sleep Healing is independent of your Sleep Score.
Sleep Score
Every player is assigned a "Sleep Score" based on how long in MC hours they've slept. Your Sleep Score decays when you're awake and goes up when you sleep to a maximum of 14 MC hours worth.
Well Rested and Alarm Clocks
When you're notified that "I'm pretty tired..." it means if you sleep a full night you will receive the Well Rested buff! (Luck 5min, Speed + Haste 2.5min) But be careful if you miss your Alarm Clock and oversleep, you wont get the buff and you'll have to wait until you're tired to be eligible to get the buff again.
Can't Sleep and Oversleeping
You can't spend all day in bed! If your Sleep Score is maxed out, you'll wake up groggy and lose out on buffs. And if your Sleep Score is maxed out, you won't be able to sleep! (Feature intended to work with mods that allow sleeping during the day)
Server-Sided
This datapack can be run server-side and does not need to be on the client unless it's to be used in singleplayer. The mod versions are auto-packages of the datapack to be used in mod loaders like Fabric.
Compatibility
Time Acceleration (Full)
Healthy Sleep is designed to work with mods that accelerate time when players sleep like:
Time Skipping (Partial)
Healthy Sleep will mostly function when time is skipped upon sleeping. The Alarm Clock won't work and Oversleeping may trigger excessively when using sleep behavior like these:
Changing Day Length (NOT COMPATIBLE)
Healthy Sleep requires that the minecraft day be 24000 ticks long. Speeding up how quickly that passes is fine, reducing it is not, therefore some mods that change day length may work, some might not depending on their implementation. (I would guess Better Days works, but I haven't tested it)
Future of Healthy Sleep
Features
- Exhaustion - Going too long without sleeping will induce debuffs until you sleep long enough to clear them.
- User Configuration - Might add in-game configuration commands
Updates
- "Will you update/backport this to new/old versions?"
Only if I need it, which means probably no. You're welcome to unzip the pack and try it yourself! Nearly every command has comments explaining their function, making it easy to modify.
I made this for my private RP server, so I'll likely only take the time to add features if it benefits that. Again, you're welcome to try adding it yourself!
- "I found a bug! Where do I report it?"
To the Exterminator.
评论 0
登录后参与评分
还没有评论,来抢沙发吧