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.

Teleporting when standing on specific location

Discussion in 'Skript' started by HowTragicMate, Aug 29, 2022.

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

    HowTragicMate Member

    Joined:
    Feb 21, 2020
    Messages:
    11
    Likes Received:
    0
    Code (Text):
    1. on step on oak planks:
    2.     send "test1" to player
    3.     if location of player is location 2912, 61, -275 in world "world":
    4.         send "test2" to player
    5.         teleport player to location at 2741, 62, -746 in world "world"
    This doesn't work past "test1" but I don't get any errors messages.
     
  2. pom2000

    pom2000 Member

    Joined:
    Aug 13, 2022
    Messages:
    3
    Likes Received:
    0
    I have no idea why it doesn't work but that's prob cuz I never do stuff with tp but You can also do it like this
    Code (Text):
    1. execute console command "/tp %player% 2741 62 -746"
     
  3. HowTragicMate

    HowTragicMate Member

    Joined:
    Feb 21, 2020
    Messages:
    11
    Likes Received:
    0
    The 3rd line is the part that isn't working.
     
    #3 HowTragicMate, Aug 29, 2022
    Last edited: Aug 31, 2022
  4. pom2000

    pom2000 Member

    Joined:
    Aug 13, 2022
    Messages:
    3
    Likes Received:
    0
    Oooooh sry now that I see it I didn't read it correctly
     
  5. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    139
    Likes Received:
    22
    Try check location of event-block, not of player.

    Code (Text):
    1. on step on oak planks:
    2.     send "test1" to player
    3.     if event-block is block at location 2912, 61, -275 in world "world":
    4.         send "test2" to player
    5.         teleport player to location at 2741, 62, -746 in world "world"
     
  6. RoosSkywalker

    RoosSkywalker Member

    Joined:
    Jul 16, 2022
    Messages:
    15
    Likes Received:
    0
    Or claim a 1 block space with worldguard and then check for region.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...