Description
BedKiller – Sleep First, Spawn Later
In Survival, players often throw down a bed and right‑click it to “quick‑save” their spawn right before dying. BedKiller stops that exploit. Your spawn point is updated only after you actually sleep through the night.
How it Works
-
Daytime bed clicks are blocked
Right‑clicking a bed when it’s not night is cancelled and you get a warning message. -
Real sleep = new spawn
When you wake up from a proper night’s sleep, your respawn point is set to that bed automatically. -
No changes to multiplayer sleep logic
Whatever rules or mods you use to skip the night stay intact. BedKiller only cares about when the spawn is saved.
Why Use It
-
Removes the “place‑bed‑click‑die” cheese tactic.
-
Makes Survival riskier and more strategic: you need a safe spot to sleep, not just a pocket bed.
Configuration / Customization
-
The on‑screen message and the exact “day/night” time window are hardcoded but very easy to tweak in the source (
onRightClickBedmethod). -
You can add dimension checks if you want the rule to apply (or not) in Nether/End/custom dimensions.
Compatibility
-
Forge 1.20.1.
-
Lightweight and server‑friendly: it only hooks two events (
RightClickBlockon beds andPlayerWakeUpEvent). -
Plays nicely with mods like Comforts (sleeping bags don’t set spawn anyway).
Installation
-
Drop the
.jarinto yourmods/folder. -
Launch the game or server.


