Open Dementore711 opened 1 month ago
Thats how the mod works. It disables the vanilla sleeping mechanic and mimics it with its own so you have more ways to influence certain things. That means without the gamerule set to a value higher than 100, the datapack wont work the expected way.
The issue here is that it is preventing any player from sleeping. It just shows player is sleeping message but does not skip or accelerate time.
Only after setting playersSleepingPercentage to 100 or below sleeping occurs
Try to do /datapack disable "file" and then /datapack enable "file"
Try to do /datapack disable "file" and then /datapack enable "file"
I tried by /function sleep:uninstall > stopping server > removing fabric sleep mod
then installed datapack and ran these commands. It still doesn't allow to sleep.
I think I am doing something wrong somewhere
Maybe there's an incompatibility with a mod you use. The gamerule must be set to 101 or higher for the datapack to work
Using the fabric mod version on a self hosted server. gamerule playersSleepingPercentage is always set to 101 on server restart. I have to change it each time the server restarts (even if i set &percentage_to_sleep to 50)
I tried /function sleep:uninstall and then /reload, still its the same
I am using the following config /scoreboard players set &percentage_mode sleep.config 1 /scoreboard players set &percentage_to_sleep sleep.config 50 /scoreboard players set &time_control sleep.config 1 /scoreboard players set &heal_when_sleeping sleep.config 1
if its related I use your afk announcer mod with the following config changed /scoreboard players set &afk_invulnerable afk_announcer.config 1