project - icon

Respawn Delay

Server mod

⏳ [PvP Mod] Players enter spectator mode on death for a configurable amount of time.

AdventureSocialUtility

37 downloads 0 followers
Created a month ago
Updated 4 days ago

External resources



Project members

profile-picture

Owner


Technical information

License
Client side
optional
Server side
required
Project ID
5Yxg7cHy



Requires the library mod Collective.

Respawn Delay is a mod designed for servers. It fits best in a pvp server, but can be used in events as well. Instead of instantly respawning, players enter spectator mode on death. They can fly around and see the action, until the configurable delay has been reached and they respawn. All messages sent are configurable, but by default the spectating player will receive an update on when they will respawn every second counting down. There is also a /respawnall command to force all spectating players to respawn.

Respawn delay is compatible with Gravestone mods. Just make sure to disable dropItemsOnDeath in the config to prevent duplication.


Configurable: ( how do I configure? )
ignoreAdministratorPlayers (default = false): If enabled, player operators/administrators will not be put in spectator mode on death.
ignoreCreativePlayers (default = true): If enabled, player in creative mode will not be put in spectator mode on death.
keepItemsOnDeath (default = false): If enabled, players will keep their items on death, and no drop event will be ran. This will also ignore the 'dropItemsOnDeath' config.
dropItemsOnDeath (default = true): If enabled, players will drop their items on death as normal vanilla behaviour.

respawnAtWorldSpawn (default = true): If enabled, players will be respawned at the world spawn point. If disabled, they'll respawn wherever they're spectating.
respawnWhenPlayerLogsOut (default = true): If enabled, players will respawn when they logout while waiting for a respawn. Prevents players from getting stuck in spectator mode.
respawnWhenPlayerLogsIn (default = true): If enabled, players will respawn when they log in and are still in spectator mode. Prevents players from getting stuck in spectator mode.

respawnDelayInSeconds (default = 10, min -1, max 3600): The delay in seconds after which a spectating player will respawn. A value of -1 makes players never respawn automatically. The '/respawnall' command can still be used.

onDeathMessage (default = "You died! Your gamemode has been set to spectator."): The message which is sent to the player on death. Leave empty to disable.
onRespawnMessage (default = "You respawned."): The message which is sent to players when they respawn. Leave empty to disable.
waitingForRespawnMessage (default = "You will respawn in <seconds_left> seconds."): The message which is sent to players when they are waiting to be respawned. The text '<seconds_left>' will be replaced with the actual seconds left. Leave empty to disable.

lowestPossibleYCoordinate (default = -10, min -50 max 256): When a player falls into the void, this determines the y position that's set after when a player enters spectator mode.


Commands:
/respawnall - Respawns all spectating players. (must have cheat-access)


Images:





Some GIFs:

A player entering spectating mode on death:


And the player respawning after the countdown is finished:


------------------

You may freely use this mod in any modpack, as long as the download remains hosted within the Modrinth ecosystem.

Serilum.com contains an overview and more information on all mods available.

Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!