Tested Minecraft Versions: 1.17 -> 1.20
Languages Supported: English, Russian, Polski
Player has energy (default 40 minutes)
Each player has sleep statistics. Initially, he can only sleep 70% of the time (28 minutes), if he goes to bed on time (with energy at 10-30 percent), then for every good sleep, he will receive points. For good - positive, for bad - negative. The more a player follows a sleep schedule, the better his sleep becomes, i.e. with 5 good dreams in a row he will be able to sleep 85%, with 10 good dreams in a row up to 100%. With poor sleep it works the same way, with 5 bad sleep
the config implement stages (sleep stage in percentage range, for example 100-90% energy)
Each stage can include permanent effects, temporary effects and random effects
Below is a description of the basic config that is added by default
100-85%
SPEED 1
FAST_DIGGING 1
85-70%
SPEED 1
70-30% EMPTY
30-20%
SLOW 1
20-10%
SLOW 1
SLOW_DIGGING 1
50% chance DARKNESS 1
10-0%
SLOW 3
SLOW_DIGGING 2
20% chance DARKNESS 1
20% chance WITHER 1
0%
SLOW 3
SLOW_DIGGING 2
40% chance DARKNESS 1
40% chance WITHER 1
Energy drinks add a percentage to your alertness if you eat them. Doesn't work for insomnia
/lsleep items add energy 10 (You need to hold the item in your hands that you want to add
Stages
Each stage allows you to add interactivity at each stage
messages - A set of messages. When a player reaches this stage, a random message from this list will be selected and shown to the player
effects - An effect that will be applied to the player upon reaching the stage. The effect can be configured to trigger, which is checked every 10 seconds of real time (200 ticks). Each effect contains:
potionEffects - effects that will be applied to the player
sounds - sounds that will be played to the player
particles - particles that will be summoned around the player (hallucinations)
Below is the config of an additional effect for insomnia, which triggers once every 10 seconds with a 40% chance
PlaceHolder API
%sleep_now% (Energy)
%sleep_score%
%sleep_goodStreak%
%sleep_badStreak%
%sleep_allGood%
%sleep_allBad%
Languages Supported: English, Russian, Polski
Sleep Mechanic
Player has energy (default 40 minutes)
Each player has sleep statistics. Initially, he can only sleep 70% of the time (28 minutes), if he goes to bed on time (with energy at 10-30 percent), then for every good sleep, he will receive points. For good - positive, for bad - negative. The more a player follows a sleep schedule, the better his sleep becomes, i.e. with 5 good dreams in a row he will be able to sleep 85%, with 10 good dreams in a row up to 100%. With poor sleep it works the same way, with 5 bad sleep
the config implement stages (sleep stage in percentage range, for example 100-90% energy)
Each stage can include permanent effects, temporary effects and random effects
Below is a description of the basic config that is added by default
100-85%
SPEED 1
FAST_DIGGING 1
85-70%
SPEED 1
70-30% EMPTY
30-20%
SLOW 1
20-10%
SLOW 1
SLOW_DIGGING 1
50% chance DARKNESS 1
10-0%
SLOW 3
SLOW_DIGGING 2
20% chance DARKNESS 1
20% chance WITHER 1
0%
SLOW 3
SLOW_DIGGING 2
40% chance DARKNESS 1
40% chance WITHER 1
Energy Drink & Medication
You can initialize an item that, when you eat them, will be used.
Energy drinks add a percentage to your alertness if you eat them. Doesn't work for insomnia
/lsleep items add energy 10 (You need to hold the item in your hands that you want to add
Stages
Each stage allows you to add interactivity at each stage
messages - A set of messages. When a player reaches this stage, a random message from this list will be selected and shown to the player
effects - An effect that will be applied to the player upon reaching the stage. The effect can be configured to trigger, which is checked every 10 seconds of real time (200 ticks). Each effect contains:
potionEffects - effects that will be applied to the player
sounds - sounds that will be played to the player
particles - particles that will be summoned around the player (hallucinations)
Below is the config of an additional effect for insomnia, which triggers once every 10 seconds with a 40% chance
Night cycle
Theres a night cycle in the plugin but the GIF is error so i cant upload it here
PlaceHolder API
%sleep_now% (Energy)
%sleep_score%
%sleep_goodStreak%
%sleep_badStreak%
%sleep_allGood%
%sleep_allBad%
Liked By 3 members:
whitelite
g1g7v1s1
Long1603200803