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.

Solved Entity teleport not working

Discussion in 'Skript' started by Chickenman, Jul 30, 2021.

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

    Chickenman New Member

    Joined:
    Jul 30, 2021
    Messages:
    6
    Likes Received:
    0
    I'm trying to teleport a silverfish to some coords, and it's not giving any errors, but it doesn't work.
    here is my code:

    command fight:
    trigger:
    teleport silverfish to location(970, 48, -22, world)
    it works when I put player but not anything else

     
  2. Best Answer:
    Post #4 by alexistb2904, Aug 1, 2021
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    how would skript now which silverfish you meant?
     
  4. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    49
    Likes Received:
    1
    Hey @Chickenman, I've fixed some errors in your code, the skript wasn't wrong it was just formatted incorrectly. Here's the updated skript:

    command /fight:
    trigger:
    teleport silverfish to location 970, 48, -22 in world "world"

    Your code should work now! Give it a go.
     
  5. alexistb2904

    alexistb2904 New Member

    Joined:
    Jul 27, 2021
    Messages:
    8
    Likes Received:
    1
    No this won't work..

    But this :

    if you want all silverfish in world be teleported

    Code (Text):
    1. command /fight:
    2.     trigger:
    3.         loop all entities:
    4.             if loop-entity is a silverfish:
    5.                 teleport loop-entity to location 970, 48, -22 in world "world"
    If you want all silverfish around you be teleported

    Code (Text):
    1. command /fight:
    2.     trigger:
    3.         loop all entities in radius  [radius] around player:
    4.             if loop-entity is a silverfish:
    5.                 teleport loop-entity to location 970, 48, -22 in world "world"
     
    Chickenman likes this.
  6. Chickenman

    Chickenman New Member

    Joined:
    Jul 30, 2021
    Messages:
    6
    Likes Received:
    0
    tysm
     
Thread Status:
Not open for further replies.

Share This Page

Loading...