Solved Void death script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Azule

New Member
Jul 25, 2020
8
0
0
22
I want when a player falls into the void for it to instantly teleport them to spawn before they die down there obviously and for it to display a big bold red text on their saying "You died" and beneath the you died A bold gray "You fell into the void"
 
You can use this:

code_language.skript:
on damage of a player:
    if damage cause is void:
        if {void::securezone} is set:
            cancel event
            teleport victim to {void::securezone}
            send "&4&lYou died" to victim
            send "&7&lYou fell into the void" to victim

command /setsecurezone:
    trigger:
        if player has permission "void.setsecurezone":
            set {void::securezone} to player's position
            send "SecureZone setted"

command /deletesecurezone:
    trigger:
        if player has permission "void.deletesecurezone":
            delete {void::securezone}
            send "SecureZone deleted"
To set the secure zone (the place where they will be teleported when falling into the void) use "/setsecurezone" and it set the secure zone at your position (to use that command you need the permission "void.setsecurezone"). To disable this, use "/deletesecurezone" (with permission "void.deletesecurezone").
 
You can use this:

code_language.skript:
on damage of a player:
    if damage cause is void:
        if {void::securezone} is set:
            cancel event
            teleport victim to {void::securezone}
            send "&4&lYou died" to victim
            send "&7&lYou fell into the void" to victim

command /setsecurezone:
    trigger:
        if player has permission "void.setsecurezone":
            set {void::securezone} to player's position
            send "SecureZone setted"

command /deletesecurezone:
    trigger:
        if player has permission "void.deletesecurezone":
            delete {void::securezone}
            send "SecureZone deleted"
To set the secure zone (the place where they will be teleported when falling into the void) use "/setsecurezone" and it set the secure zone at your position (to use that command you need the permission "void.setsecurezone"). To disable this, use "/deletesecurezone" (with permission "void.deletesecurezone").
Thank you you're awesome!