Vatsal Bhatia

Send players who die in Lifesteal worlds to the main world's spawn.

on death of player: set {_deathWorld} to name of world of player if {_deathWorld} is "world" or {_deathWorld} is "lifesteal" or {_deathWorld} is "lifesteal_nether" or {_deathWorld} is "lifesteal_the_end": set {lifesteal-respawn::%uuid of player%} to true else: delete {lifesteal-respawn::%uuid of player%}

on respawn: if {lifesteal-respawn::%uuid of player%} is set: set respawn location to spawn point of world "world" delete {lifesteal-respawn::%uuid of player%}

Kodari AI
KodariOct 30 at 8:41 am 1
LifestealRespawnRedirect
Manages player respawn behavior for Lifesteal game mode worlds. Detects player deaths occurring within designated Lifesteal worlds (world, lifesteal, lifesteal_nether, lifesteal_the_end) and stores a respawn flag for the deceased player. Upon respawn, the plugin checks the stored flag and redirects the player to the main world's spawn point, then clears the flag. Players who die outside Lifesteal worlds respawn normally without redirection, ensuring seamless integration with standard gameplay mechanics.

Place lifesteal-respawn.sk in plugins/Skript/scripts/, then run /sk reload lifesteal-respawn.

Kodari can make mistakes. Review important code before using.
Files
lifesteal-respawn.sk
Code
1 11
lifesteal-respawn.sk
on death of player:
    set {_deathWorld} to name of world of player
    if {_deathWorld} is "world" or {_deathWorld} is "lifesteal" or {_deathWorld} is "lifesteal_nether" or {_deathWorld} is "lifesteal_the_end":
        set {lifesteal-respawn::%uuid of player%} to true
    else:
        delete {lifesteal-respawn::%uuid of player%}

on respawn:
    if {lifesteal-respawn::%uuid of player%} is set:
        set respawn location to spawn point of world "world"
        delete {lifesteal-respawn::%uuid of player%}