跳到正文

Sleep Rework Reborn

作者:cambrova

Sleep only once you are tired, and phantoms come for players who stay up too long. Based on Sleep Rework by Lemonszz.

收藏

截图

介绍

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

In vanilla you can skip every night the moment it gets dark, and phantoms show up whether or not that makes sense. Sleep Rework ties both to how tired you actually are. You can only sleep once you’ve been awake long enough, and phantoms only come for players who’ve stayed up for far too long.

Unofficial port of Sleep Rework by Lemonszz, for NeoForge and Fabric on 1.21.1, 1.21.11, 26.2 and 26.3. Please report bugs here.

The inventory with the tiredness icon next to the player, coloured orange because this player has gone two nights without sleep

How it works

  • Tiredness. It goes up while you’re awake. With the default settings you can sleep after about 40 minutes of play (two in-game days). Until then, the bed tells you you’re not tired enough. An icon in your inventory shows how tired you are, and hovering it gives the percentage.
  • Sleeping. Sleeping resets your tiredness and gives you a few seconds of Regeneration when you wake. On a server where not everyone sleeps, you’re woken up rested after a short nap instead of lying in bed all night.
  • Phantoms. The vanilla phantom spawner is turned off. Phantoms appear only around players who are very tired, about two hours without sleep by default. In the Overworld that’s at night under open sky. In dimensions without a sky, such as the Nether and the End, it can happen any time. More of them come the more tired you are.
  • Potions.
    • Potion of Liveliness: brew an Awkward Potion with a honeycomb. It halves how fast you get tired.
    • Potion of Drowsiness: corrupt Liveliness with a fermented spider eye. It doubles how fast you get tired.
    • Both come in longer (redstone) and stronger (glowstone) versions.
  • Command. Admins can check or set tiredness with /tiredness <player> [value] [set|add], where 100 means “tired enough to sleep”.
  • Game rule. Setting doInsomnia to false turns tiredness and phantoms off, like in vanilla.

Config

config/sleeprework.json holds every number above:

  • how fast tiredness grows, when you can sleep, and when phantoms start;
  • how long a nap lasts;
  • the wake-up effects;
  • the potion strengths and brewing ingredient;
  • whether the vanilla phantom spawner stays off;
  • the icon’s position and colours.

FAQ

Client or server? Both. Install it on the server and on every client.

Does it need anything else? Fabric API on Fabric. Nothing on NeoForge.

Can I use it in my modpack? Yes, go ahead, no need to ask.

MIT. Developed with AI assistance. Source: https://github.com/traelmyx/sleep-rework-reborn

常见问题

Sleep Rework Reborn 支持哪些 Minecraft 版本?

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

Sleep Rework Reborn 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

cambrova 的其他作品

查看全部 →