Random teleport to the other world.

  • 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 community!

    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.

jomjonejame

Member
Jan 26, 2017
54
1
8
MC 1.8.8

I want to command random teleport to other world
is not work, values is <none>

code_language.skript:
set {_x} to random number between -5000 and 5000
set {_y} to 100
set {_z} to random number between -5000 and 5000
set {_w} to "world_survival"

set {_loc} to the location at {_x}, {_y}, {_z} of the world {_w}
teleport player to {_loc}

if use script this it teleport in world of player only
code_language.skript:
set {_loc} to the location at {_x}, {_y}, {_z}
teleport player to {_loc}
 
MC 1.8.8

I want to command random teleport to other world
is not work, values is <none>

code_language.skript:
set {_x} to random number between -5000 and 5000
set {_y} to 100
set {_z} to random number between -5000 and 5000
set {_w} to "world_survival"

set {_loc} to the location at {_x}, {_y}, {_z} of the world {_w}
teleport player to {_loc}

if use script this it teleport in world of player only
code_language.skript:
set {_loc} to the location at {_x}, {_y}, {_z}
teleport player to {_loc}
Can you send us the command/function part of the script?
 
Try using the location function instead, it should be like:
code_language.skript:
teleport player to location(random number from -5000 to 5000, 100, random number from -5000 to 5000, world("world_survival"))
what I did is using the world function too.
 
  • Like
Reactions: FUZIK
Status
Not open for further replies.