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.

I've partnered with RocketNode Hosting!
RocketNode provides top-tier server hosting worldwide, allowing you to set up your server with just a few clicks! Their intuitive dashboard makes server management a breeze, and you can even schedule automatic restarts without needing any coding knowledge.
Use the code FRANKV to get 25% off your first month on any of their gaming servers. Get started here: https://rocketnode.com/frankv
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.5, 1.21.4, 1.21.3
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
Better Safe Bed is a free Minecraft Java mod. Compatible with Minecraft 1.21.5, 1.21.4, 1.21.3, 1.21.7 and newer. Downloaded 2,697,317 times (via CurseForge). Download it and open it directly in the game.
