This mod solves the issue of being unable to sleep even when you are safe, due to a random mob lurking in the cave beneath your base, outside its walls or on its roof.
Normally, if a "monster" is within 8 blocks horizontally and 5 blocks vertically from your bed, you will receive a message saying "You may not rest now, there are monsters nearby". This prevents you from sleeping until the monsters leave or are killed.
This means that if a monster is outside your base and your bed is next to the wall, you won't be able to sleep.
To address this problem, this mod adds an extra check for mobs within range so that you can sleep peacefully even when they cannot target you.
This mod is a server-side mod, it doesn't need to install on the client to function unless you use it in singleplayer.

How to Install Better Safe Bed (Mod)
Better Safe Bed by frankV is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.16.5, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.20, 1.20.1, 1.20.2 (latest release: 1.21.3-1, file size: 4 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16.5, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.20, 1.20.1, 1.20.2) and platform (Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
- Move the downloaded Better Safe Bed file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- update to MC1.21.3
- update to MC1.21.3
- update to MC1.21
- update to MC1.21
- update to MC1.20.4
- update to MC1.20.4
- [eb6b7ba](http://github.com/frank89722/BetterSafeBed/commit/eb6b7bab0794d18a13961cbef8492daf8b5dfeb8) - [build] use github action run number as version number
- [eb6b7ba](http://github.com/frank89722/BetterSafeBed/commit/eb6b7bab0794d18a13961cbef8492daf8b5dfeb8) - [build] use github action run number as version number
- [0d9efd7](http://github.com/frank89722/BetterSafeBed/commit/0d9efd7f088d2bf5259fc762aa648f2ea98a73a5) - [build] update to mc1.19
- [0d9efd7](http://github.com/frank89722/BetterSafeBed/commit/0d9efd7f088d2bf5259fc762aa648f2ea98a73a5) - [build] update to mc1.19
