
Better Safe Bed
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.
About this Mod
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
Available Versions
How to Install Better Safe Bed on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.7).
Install Mod
Open the mod browser in the dashboard and search for "Better Safe Bed". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.7, 1.21.6, 1.21.5 (+14 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Better Safe Bed server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.7). You can switch loaders with one click in the panel.
Is Better Safe Bed compatible with fabric and forge and neoforge and quilt?
Better Safe Bed officially supports fabric, forge, neoforge, quilt for Minecraft 1.21.7, 1.21.6, 1.21.5. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Better Safe Bed – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Better Safe Bed consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Better Safe Bed with just one click on your server.
