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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

preset tp command

Discussion in 'Skript' started by Nyctophobic_, Jun 3, 2021.

Thread Status:
Not open for further replies.
  1. Nyctophobic_

    Nyctophobic_ New Member

    Joined:
    May 28, 2021
    Messages:
    7
    Likes Received:
    0
    Basically, it teleports you to a set location.
    If you do let's say /start it will teleport you to x=0 y=60 z=0
     
  2. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
    Try this:
    Code (Text):
    1. command /setspawn:
    2.     trigger:
    3.         set {spawn} to location of player
    4.  
    5. command /start:
    6.     trigger:
    7.         teleport player to {spawn}
     
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    Code (Text):
    1. command /start [<text>]:
    2.     trigger:
    3.         teleport player to location(0, 60, 0, world)
     
  4. WhiteWolf

    WhiteWolf Member

    Joined:
    May 2, 2020
    Messages:
    32
    Likes Received:
    2
    If you want to do something simple, say, teleporting them to an already set location, you can do
    Code (Skript):
    1.  
    2. command /start:
    3.     trigger:
    4.         teleport player to location(0, 60, 0 in world "world") # not tested
    5.  
    This is sort of a "bonus," but if you want your players to be able to set their own location, you can do
    Code (Skript):
    1.  
    2. command /start <number> <number> <number>:
    3.     usage: /start (x) (y) (z)
    4.     trigger:
    5.         set {_x} to arg-1
    6.         set {_y} to arg-2
    7.         set {_z} to arg-3
    8.         teleport player to location({_x}, {_y}, {_z} in world "world") # not tested
    9.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...