Teleporting when standing on specific location

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

HowTragicMate

Member
Feb 21, 2020
11
0
1
Code:
on step on oak planks:
    send "test1" to player
    if location of player is location 2912, 61, -275 in world "world":
        send "test2" to player
        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.
 
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:
execute console command "/tp %player% 2741 62 -746"
 
Try check location of event-block, not of player.

Code:
on step on oak planks:
    send "test1" to player
    if event-block is block at location 2912, 61, -275 in world "world":
        send "test2" to player
        teleport player to location at 2741, 62, -746 in world "world"
 
Status
Not open for further replies.