1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Void Teleport

Discussion in 'Requests' started by tcrnado, Jan 6, 2021.

  1. tcrnado

    tcrnado Member

    Joined:
    Jan 6, 2021
    Messages:
    1
    Likes Received:
    0
    Category: Teleport

    Suggested name: Void Teleport

    Spigot/Skript Version: Latest

    What I want:
    I have a parkour server and falling in the void is annoying. To counter void damage, I want a skript for when someone falls into the void they get sent to their checkpoint instead of dying to the void. When they get teleported they will use /checkpointtp to get back to their checkpoint. This command already exists in my parkour skript, so if someone could include
    Code (Text):
    1. player command "checkpointtp"
    that would be great.


    Ideas for commands: None

    Ideas for permissions: None

    When I'd like it by: Any time
     
  2. kkk kk

    kkk kk New Member

    Joined:
    Jun 23, 2020
    Messages:
    5
    Likes Received:
    0
    on damage of a player:
    if damage cause is void:
    Make player execute command “/checkpointtp”

    I believe that ought to work
     
  3. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    Maybe cancel the damage event as said in the request "To counter void damage"
     
  4. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    6
    i believe you can make the spawn really tall and then make a region like 8 blocks under spawn and then do this script

    Code (Text):
    1. on region enter:
    2.   "%region%" contains "nonovoid"
    3.   execute player command "/checkpointtp"
    P.S call the region nonovoid
     
  5. BadName

    BadName Member

    Joined:
    Oct 23, 2020
    Messages:
    23
    Likes Received:
    0
    this prob works

    Code (Text):
    1. on join:
    2.   while {%player%parkour} is true:
    3.     altitude of player is below 10:
    4.       if {lastcheckpoint%player%} exists:
    5.         teleport player to {lastcheckpoint%player%}
    6.       if {lastcheckpoint%player%} does not exist:
    7.         teleport player to {parkourtp}
    8.  
    9.  
    10. command /parkoursetspawn:
    11.   permission: parkouret.spawn
    12.   trigger:
    13.     set {parkourtp} to location of player
    14.     send "&cSet Spawn point for parkour to your location!" to player
    15.  
    16. command /parkour:
    17.   permission: sk.parkour
    18.   trigger:
    19.     if {parkourtp} exists:
    20.       teleport player to {parkourtp}
    21.       set {%player%parkour} to true
    22.       send "&8Teleported you to the parkour" to player
    23.  
    24.  
    25. on walk on stone:
    26.   if {%player%parkour} is true:
    27.     set {lastcheckpoint%player%} to location of player
     
  6. kkk kk

    kkk kk New Member

    Joined:
    Jun 23, 2020
    Messages:
    5
    Likes Received:
    0
    It'd be preferred to be:
    Code (Text):
    1. on region exit:
    2.     if "%region at player%" does not contain "nonovoid":
    3.         make player execute command "/checkpointtp"

    Furthermore, he said that a command is already made (/checkpointtp)
     

Share This Page

Loading...