Description
'It works now, I swear!'
Requires the Fabric API.
This mod adds sleep voting, sleep recovery and no-sleep debuffs! Works server-side only as well!
Sleep voting
Sleep voting allows nights to be skipped when a certain percentage of the players are asleep. This can be set via a gamerule (percentRequiredToSleep
) per save!
Sleep recovery
Sleep recovery gives players regeneration for 15s when they have slept through the night. This can be enabled or disabled through the config file.
No-sleep debuffs
No-sleep debuffs are applied when a player has skipped some nights consecutively without sleeping. The effects get stronger the more nights the player is awake. This can be enabled or disabled, and the nights before the effect is applied can be configured through the config file as well.
The effects given are:
- Nausea (5s first night, 10s second night, so on)
- Slowness (50s, strength increases every other night)
- Mining fatigue (50s, strength increases every other night)
- Weakness (50s, strength increases every other night)
- Blindness (25s, only after the 2nd night of debuffs)
Messages
Messages are sent when a player sleeps, for skipping nights and for debuffs. These can all be configured as well. Each message can have placeholders that are replaced:
- The night skipped message does not take any placeholders.
- The players asleep message can take:
{asleep}
which is replaced with the number of players asleep
{total}
which is replaced with the total number of players
{percent}
which is replaced with the percentage of players that are asleep
{required}
which is replaced with the number of players required to skip the night new in 0.2.0
{percentRequired}
which is replaced with the percentage of players required to skip the night new in 0.2.0
- The debuff message can take
{nights}
which is replaced with the number of nights skipped.
The config file also has a formatting field that is used to format the messages. It is a list and can take the names of any of the standard colours and styles. The Minecraft wiki has a full list.
Config
The config file is found in the config
folder and is called bettersleeping_config.json
. This folder should be in the same place as your mods
folder (.minecraft
for Windows). If this file is deleted the mod will recreate it with the default settings at the next start-up.
AD
Become Premium to remove Ads!
What means Verified?
-
Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
-
Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
-
Security: The mod should not contain any malicious code or attempts to steal personal information.
-
Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
-
Originality: The mod should be original and not a copy of someone else's work.
-
Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
-
Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
-
License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
-
Documentation: The mod should come with clear and detailed documentation on how to install and use it.
AD
Become Premium to remove Ads!
How to Install
Download Forge & Java
Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.
Prepare
Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.
Add Mods
Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder
Enjoy
You are now Ready. Re-start your Game and start Playing.