• check_circle Functions
  • 4,161 views, 2 today
  • 956 downloads, 0 today
  • 19
  • 13
  • 13
ImJunny's Avatar ImJunny
Level 26 : Expert Engineer
7
Sleep Indicator by ImJunny
- Displays amount of people required in the Overworld to make it daytime!
- Visible if multiple players are in Overworld
- Hidden for players in the Nether/End
- Simple commands!

If there are any problems, let me know. I will try to fix it as soon as possible!
CompatibilityMinecraft 1.13
toMinecraft 1.17
Tags

Create an account or sign in to comment.

1
06/19/2021 10:58 am
Level 40 : Master Pixel Puncher
Shamwig
Shamwig's Avatar
Hi, quick question. This datapack works in 1.17? more specific with the /gamerule playersSleepingPercentage?
2
06/27/2021 8:14 pm
Level 26 : Expert Engineer
ImJunny
ImJunny's Avatar
I have not tested it for 1.17 but it should work.
1
05/22/2021 11:30 am
Level 1 : New Miner
Maztm
Maztm's Avatar
Is there a way for this count to ignore people in spectator or vanish mode?
2
05/25/2021 2:32 pm
Level 26 : Expert Engineer
ImJunny
ImJunny's Avatar
Perhaps you can manually change the datapack commands in the "main" file found in data/si/functions.
To count all players in SURVIVAL only (by making these commands more specific):

Change line 1 to
bossbar set sleepbar players @a[nbt={Dimension:"minecraft:overworld"},gamemode=survival]


Change line 4 to
execute store result score people sleeping if entity @a[nbt={Dimension:"minecraft:overworld"},gamemode=survival]

You get the idea. Change the specifications if needed. Let me know if that works, thanks!
1
06/27/2021 6:05 pm
Level 1 : New Miner
Maztm
Maztm's Avatar
Sorry for super-late response (had a long-running event to see who could not sleep for the longest) but this works.
1
05/11/2021 2:41 pm
Level 1 : New Miner
nata_gush
nata_gush's Avatar
Hello. I tried it in 1.16.5 and it doesn't work. Is there a command I have to use before trying it? I restarted the server too, but it doesn't work. All players were in the same world.
2
05/11/2021 4:30 pm
Level 26 : Expert Engineer
ImJunny
ImJunny's Avatar
That's odd. I tested this on 1.16.5 too and everything seemed to work. Did you accidentally put the zip file itself and not the folder in that zip file into your datapacks folder? What I would do is check this and if you are op, use the command /reload. If there is a "Reloaded Sleep Indicator by ImJunny" message, then everything should be working.
1
05/28/2022 5:15 pm
Level 1 : New Miner
nata_gush
nata_gush's Avatar
I fixed it (forgot to unzip) and it works perfectly on my SMP. Thanks alot!
1
06/12/2021 11:20 am
Level 39 : Artisan Miner
notnew12345
notnew12345's Avatar
Does this pack work for multiple sleeping players like Sleeping 0/20?
1
06/21/2021 7:27 pm
Level 26 : Expert Engineer
ImJunny
ImJunny's Avatar
Sorry for being inactive. If you're asking whether it works for multiple players, then yes. For example, if there are 53 players in the overworld, then the sleep indicator will display ex: 5/53 Players Sleeping. It'll work for as many people there are in the overworld (since people in the nether and end don't need to sleep in the overworld for the day to pass).
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome