
Sensible Sleepiness
A small server-side Fabric mod that allows each player to independently choose how Phantoms will interact with them. Players can activate one of three available sleep modes using special commands. It's important to note that this mod does not override the doInsomnia
game rule. If it's disabled, Phantoms won't spawn for anyone, regardless of the selected mode.
Insomnia Mode
/sleepy-mode insomnia
This mode is set by default for those who want to maintain the standard Phantom behavior from the original game.
Hypersomnia Mode
/sleepy-mode hypersomnia
When this mode is activated, Phantoms stop spawning near the player. Additionally, existing Phantoms cease to see and attack the player.
Parasomnia Mode
/sleepy-mode parasomnia
This mode increases Phantom difficulty: with each sleepless night, they become larger and deal more damage. The grace period between attacks is shortened. Although there's a chance of Phantoms appearing in small groups, this probability decreases with each night spent without sleep.
As compensation for the increased difficulty, Phantoms spawned for players with this mode have higher chances of dropping more experience and better loot upon death.
The current sleep mode can be checked by simply entering the command /sleepy-mode
.
Default Mode Configuration
Server administrators can set the default sleep mode for new players using the command:
/gamerule defaultSleepyMode <sleepyMode>
Where <sleepyMode>
can be one of the following values:
Insomnia
Hypersomnia
Parasomnia