preset tp command

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Nyctophobic_

New Member
May 28, 2021
7
0
1
31
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
 
Try this:
Code:
command /setspawn:
    trigger:
        set {spawn} to location of player

command /start:
    trigger:
        teleport player to {spawn}
 
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
If you want to do something simple, say, teleporting them to an already set location, you can do
code_language.skript:
command /start:
    trigger:
        teleport player to location(0, 60, 0 in world "world") # not tested
This is sort of a "bonus," but if you want your players to be able to set their own location, you can do
code_language.skript:
command /start <number> <number> <number>:
    usage: /start (x) (y) (z)
    trigger:
        set {_x} to arg-1
        set {_y} to arg-2
        set {_z} to arg-3
        teleport player to location({_x}, {_y}, {_z} in world "world") # not tested
 
Status
Not open for further replies.