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%}