Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gamerule playersSleepingPercentage always set to 101 #8

Open
Dementore711 opened this issue Oct 11, 2024 · 5 comments
Open

gamerule playersSleepingPercentage always set to 101 #8

Dementore711 opened this issue Oct 11, 2024 · 5 comments

Comments

@Dementore711
Copy link

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

@Jodekq
Copy link
Member

Jodekq commented Oct 11, 2024

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.

@Dementore711
Copy link
Author

Dementore711 commented Oct 11, 2024

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

@Jodekq
Copy link
Member

Jodekq commented Oct 12, 2024

Try to do /datapack disable "file" and then /datapack enable "file"

@Dementore711
Copy link
Author

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

@Jodekq
Copy link
Member

Jodekq commented Oct 13, 2024

Maybe there's an incompatibility with a mod you use. The gamerule must be set to 101 or higher for the datapack to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants