Description
Spawn Delay is a Minecraft mod (server and client-side) that adds a customizable delay (timer) before a player can fully respawn after dying.
How it works
When a player dies and clicks the "Respawn" button:
1. The player is teleported to their spawn point.
2. Their game mode is switched to Spectator.
3. The player is "frozen" at their spawn location — the mod prevents them from moving through blocks or exploring the map while in spectator mode.
4. A countdown timer appears on the screen (just above the hotbar) showing the time remaining until full respawn.
5. Once the timer expires, the game mode automatically changes back to Survival
Offline Pause (Relog Protection)
If a player disconnects from the server while the timer is running, the countdown is paused. The next time they join the server, the timer will resume exactly from where it stopped, keeping the player frozen in spectator mode.
Configuration
The default delay time is 30 seconds.
Server owners can change this value in the configuration file that is generated after the server is started for the first time. The parameters to change are:
- `respawnDelaySeconds`: The duration of the respawn delay in seconds. (Default: 30)
- `postRespawnGameMode`: The game mode the player will be set to after the delay. Options: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR. (Default: SURVIVAL)
Localization
The mod supports the following languages for the on-screen timer:
- English: "Respawning in: X s"
- Russian: "Возрождение через: X сек"

