Hey, I am trying to make a /trp command which will teleport you anywhere within 10k blocks of spawn.
Here is what I have
For the most part, everything works except for
Wich returns <none>
Here is what I have
Code:
command /tpr:
description: Teleports you to a random area in your world
permission: dh.tpr
permission message:&cYou are unable to use this command
trigger:
set {_x} to a random integer between -9000 and 9000
set {_y} to 30
set {_z} to a random integer between -9000 and 9000
set {_world} to "Survival"
send "Teleporting you to %{_location}%" to player
set {_location} to location at {_x}, {_y}, {_z} in world {_world}
teleport the player to {_location}
wait 5 ticks
make player run cmd "top" as op
For the most part, everything works except for
Code:
set {_location} to location at {_x}, {_y}, {_z} in world {_world}