Download I have slept — Minecraft Mods — MetaMods

I have slept

Active

Downloads

0

Last update

5 months ago

Versions

1.19.2 — 1.21.4
Server
Fabric
Forge
Neoforge
Game mechanics
Utils

I have slept

This mod addresses a common problem in Minecraft multiplayer related to the night-skipping system and phantom spawning.

How does the modification work?

In standard multiplayer, there's a game rule called playersSleepingPercentage that allows skipping the night when a certain percentage of players are sleeping. However, there's a significant nuance: the sleep counters for players who didn't sleep don't reset. This leads to an unfair situation - despite the night being skipped, phantoms will start attacking those who didn't sleep in previous nights.

This modification completely eliminates this problem: after any successful night skip, it automatically resets sleep counters for absolutely all server participants. Because of this, phantoms will no longer bother players who didn't manage to sleep on time.

Configuration and usage

The mod integrates perfectly with the existing system. To start using it, just set the required percentage of players for night skipping in the standard way:

/gamerule playersSleepingPercentage <value>

For example, setting the value to 50 means the night will be skipped when exactly half of the server participants are sleeping. After skipping, the mod instantly resets sleep timers for everyone - both those who slept and those who stayed awake. No additional configuration required!

For flexible management, a new game rule has been added: doBetterServerSleep. It allows enabling and disabling the automatic counter reset function:

/gamerule doBetterServerSleep <true|false>

By default, the function is active (true). If it's not needed, simply set the value to false.

Technical features

The mod works exclusively on the server side, meaning there's no need to install it on clients. This significantly simplifies implementation and usage.

Project members
gizmo-ds

gizmo-ds

Developer

im_gizmo

im_gizmo

Created: 13 Oct 2024

ID: 62127