跳到正文

Sleep

作者:Jodek, Mqx

Change the amount of players to skip the night - Simple way to customize sleep! [sleep warp, displays sleeping players & more]

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

minecraft sleep datapack

jodeks datapacks - datapacks discord  
datapacks jodek youtube  
armor stand arms minecraft datapack codeberg issues  
jodeks datapacks kofi - jodek kofi - minecraft datapack kofi donation

sleep skip night change amount of players to skip night minecraft sleeping

Features

1. Sleeping players are displayed over the hotbar

2. Change how many players have to sleep to skip the night in the config –> Default = 1

3. Configure a lot of sleep related things with the config

4. With my Sleep Anytime You Want datapack/mod, you can sleep during any time of the day

5. Compatible with my AFK Announcer datapack/mod so players that are afk do not need to sleep to skip the night (you can change that with the config)

Showcase

One player is sleeping

2 players are sleeping

Config

Run:

/trigger sleep.config

For the tick accelerate setting you have to set function-permission-level to 3

Config for 1.20.1:

Sleep Notifications

Control when you receive notifications about sleep:

/trigger sleep_notification set <value>

Where <value> can be:

  • 0 = Disabled (default)
  • 1 = Chat notification
  • 2 = Sound notification
  • 3 = Chat + sound notification

Required Players for Sleep

Set how many players need to sleep to activate the night skip:

/scoreboard players set &amount_to_sleep sleep.config <value>

Where <value> is the number of players required (default = 1)

Sleep Mode

Choose between night skip and time warp modes:

/scoreboard players set &time_control sleep.config <value>

Where <value> can be:

  • 0 = Night skip (default)
  • 1 = Time warp

Night Duration

Control how long a night should take:

/scoreboard players set &time_until_skip sleep.config <value>

Where <value> can be:

  • 1 = 2 seconds
  • 2 = 5 seconds (default)
  • 3 = 10 seconds

Uninstallation

To remove the datapack completely:

/function sleep:uninstall

 

jodek datapack suggestions

 

常见问题

Sleep 支持哪些 Minecraft 版本?

Sleep 支持 Minecraft Java 版 1.19–26.3,共 26 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Sleep 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Jodek 的其他作品

查看全部 →