Block teleport

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

Funck

Member
Apr 22, 2018
30
0
6
24
Hello. I want to make a teleport system with a block. The player steps on a block number 1 (block.pos.1), after which it teleports to the block number 2 (black.ops.Two)

i have code, but its not working

Code:
command /setpos1:
    trigger:
        set {block.pos.1} to location of player
       
command /setpos2:
    trigger:
        set {block.pos.2} to location of player
       
on any move:
    if location of player is {block.pos.1}:
        teleport player to {block.pos.2}
        message "goto!" to player
 
Last edited:
Status
Not open for further replies.