code_language.skript:
on death:
victim is player
if damage cause is void:
teleport victim to {spawn}
cancel event
set victim's gamemode to spectator
set {_t} to 5
loop 5 times:
send title "&c&lYOU DIED!" with subtitle "&7You will respawn in %{_t}%" to victim
wait 1 second
remove 1 from {_t}
set victim's gamemode to survival
send title "&0" with subtitle "&0" to victim
heal victim
feed victim
teleport victim to {spawn}
if victim's damage cause is void:
teleport victim to {spawn}
Posted by: king_creeperz from the skUnity Discord. View the thread on skUnity Discord here