跳到正文

Stay In The Light

作者:Sansrus

Step into darkness and you die instantly

收藏

介绍

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

Stay in the Light

Step into darkness and you die instantly.

How it works

  • Every tick the pack checks the light level at every player’s feet.
  • If it’s below 5, the player dies on the spot.
  • It’s the combined light level, the same one mob spawning uses: the brighter of block light (torches, lava, glowstone) and sky light, with sky light dimmed by time of day and weather.
  • Players in creative and spectator mode are ignored.

Limitations

  • Nights outdoors are deadly. At midnight open-air sky light drops to 4, so without a light source nearby you die; in rain it starts even earlier, at dusk.
  • Respawning at night can turn into a death loop: if your spawn point is dark, you die again right after respawning. Keep a light source next to your bed or spawn.

Configuration

The threshold is set in data/stay_in_the_light/function/tick.mcfunction: light:{light:{max:4}} kills at 4 and below. Raise or lower the number to change it, then run /reload.

常见问题

Stay In The Light 支持哪些 Minecraft 版本?

Stay In The Light 支持 Minecraft Java 版 26.1–26.3,共 5 个版本。下载时注意选择和你游戏版本一致的文件。

Stay In The Light 怎么安装?

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

评论

登录后评论和评分

Sansrus 的其他作品

查看全部 →