Solved Entity teleport not working

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

Chickenman

Member
Jul 30, 2021
10
0
1
35
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
 
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.
 
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.

No this won't work..

But this :

if you want all silverfish in world be teleported

Code:
command /fight:
    trigger:
        loop all entities:
            if loop-entity is a silverfish:
                teleport loop-entity to location 970, 48, -22 in world "world"

If you want all silverfish around you be teleported

Code:
command /fight:
    trigger:
        loop all entities in radius  [radius] around player:
            if loop-entity is a silverfish:
                teleport loop-entity to location 970, 48, -22 in world "world"
 
  • Like
Reactions: Chickenman
No this won't work..

But this :

if you want all silverfish in world be teleported

Code:
command /fight:
    trigger:
        loop all entities:
            if loop-entity is a silverfish:
                teleport loop-entity to location 970, 48, -22 in world "world"

If you want all silverfish around you be teleported

Code:
command /fight:
    trigger:
        loop all entities in radius  [radius] around player:
            if loop-entity is a silverfish:
                teleport loop-entity to location 970, 48, -22 in world "world"
tysm
 
Status
Not open for further replies.