Minecraft Data Packs / Quality of Life

Better Sleep (Detrimental Insomnia)

  • check_circle Functions
  • 10,874 views, 4 today
  • 682 downloads, 1 today
  • 33
  • 20
  • 17
Aceplante's Avatar Aceplante
Level 66 : High Grandmaster Spelunker
139
With this pack, you are punished for not sleeping, the way it should be.

Several times throughout the day, players that failed to sleep the previous night get nausea for a few seconds. For each consecutive night not slept, the level increases and the duration gets longer. You will also get weakness each morning.

However, if you do sleep, you do not get those negative effects and you even get regeneration 2 for a few seconds when waking up.

Also, one second of blindness is applied when first waking up but it looks gray instead of black and immediately fades out to the normal render distance. It is solely visual and it looks cool.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This change is included in my RL Megapack posted here: Aceplante's RL Megapack, but I also wanted to post it separately in case anyone wanted this specifically.
CompatibilityMinecraft 1.13
toMinecraft 1.19
Tags

3 Update Logs

Update #3 : by Aceplante 04/19/2022 1:27:23 pmApr 19th, 2022

Lag fixes, it should be much smoother now!
LOAD MORE LOGS

Create an account or sign in to comment.

JoaoGamer13678
04/19/2022 12:49 am
Level 1 : New Miner
JoaoGamer13678's Avatar
I'm not getting the NotSlept scoreboard.
And even if I stay 1 day without sleep i don't get the negative effects Btw I get the sleepcheck tag and DaysSlept Scoreboard, but not the "NotSlept" one.
SleepRegen is not working.
I executed the "execute store result score SleepRegen Time run time query daytime"
And it just tells the cycle of the day, like what?
I just get Regeneration when i sleep.
I'm on 1.18.2 using the "CustomTime" Plugin
1
Aceplante
04/19/2022 9:24 am
Level 66 : High Grandmaster Spelunker
Aceplante's Avatar
the negative affects should happen periodically throughout the day. If regen is working that means the scoreboard is working.
also, yea that command gets the current gametime and stores it as the time variable, checked by other commands.
1
JoaoGamer13678
04/19/2022 12:07 pm
Level 1 : New Miner
JoaoGamer13678's Avatar
I hope I didn't messed up the datapack because I typed "/function sleep:minecraft" 2 times because I thought it was not working properly because of this and pressed enter, lol
1
Aceplante
04/19/2022 1:31 pm
Level 66 : High Grandmaster Spelunker
Aceplante's Avatar
I tested it the other day and although I still play 1.17, I see no reason why it wouldn't work in 1.18

You should get nausea on not sleeping and regen if you do
1
JoaoGamer13678
04/19/2022 1:36 pm
Level 1 : New Miner
JoaoGamer13678's Avatar
Ok, but are you Sure this command that i executed wouldn't mess up anything?
1
Aceplante
04/19/2022 1:49 pm
Level 66 : High Grandmaster Spelunker
Aceplante's Avatar
The proper command would be "minecraft:sleep" (the function is called sleep in the Minecraft folder). Also, you don't need to ever run it manually since it runs every tick automatically, but even if you do it doesnt affect anything.
1
JoaoGamer13678
04/06/2022 9:52 pm
Level 1 : New Miner
JoaoGamer13678's Avatar
1.18 please bro
1
Aceplante
04/06/2022 11:14 pm
Level 66 : High Grandmaster Spelunker
Aceplante's Avatar
It should work in 1.18, I see no reason it wouldn't. The only thing about datapacks that changed was worldgen features. Thats why compatibility says "to 1.19"
1
JoaoGamer13678
04/07/2022 6:03 pm
Level 1 : New Miner
JoaoGamer13678's Avatar
Nice, now could you check if this Datapack conflicts with this plugin?:
dev.bukkit.org/projects/customtime
1
Aceplante
04/08/2022 12:19 pm
Level 66 : High Grandmaster Spelunker
Aceplante's Avatar
I dont see anything that should conflict. My pack works by checking the current time value, and that seems in be able to increase the speed of time, and it should just make my pack happen faster.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome