Bed Killer – Sleep First, Respawn Later
In Survival mode, players often use the bed as an exploit: place it and immediately right-click to instantly save the respawn point before dying. Bed Killer blocks this loophole. Now the respawn point is updated only after you actually sleep through the entire night.
How It Works
-
Daytime clicks on beds are blocked If you try to click on a bed during the day, the action will be canceled, and you will receive a warning message.
-
Real sleep = new respawn point When you wake up after a full night's sleep, your respawn point is automatically set to that bed.
-
Multiplayer sleep logic remains unchanged All rules and mods for skipping the night remain functional. Bed Killer only affects the moment the respawn point is saved.
Why It's Useful
- Removes the "place-click-die" tactic that disrupts balance.
- Makes survival more challenging and strategic: now you need a safe area to sleep, not just a bed in your pocket.
Configuration
- The on-screen message and the "day/night" time window are hardcoded but easily editable in the source code (
onRightClickBedmethod). - You can add dimension checks if you want the rule to apply (or not) in the Nether, End, or other dimensions.
Compatibility
- Forge 1.20.1.
- Lightweight and server-friendly: uses only two events (
RightClickBlockon beds andPlayerWakeUpEvent). - Compatible with mods like Comforts (sleeping bags do not set respawn points anyway).
Installation
- Place the
.jarfile in themods/folder. - Launch the game or server.