#(Agath) random Teleport height

20 messages · Page 1 of 1 (latest)

midnight apex
#

Hi! I use a random teleport Script for players on a farmworld so far... with the multiverse Plugin....
But now I want to create another tp solution for my normal world where noone can fly.... so my question is... how can I do a teleport to a ungenerated area and being sure that the player lands on the surface?

till now I used this: - execute as_op "mv tp <player.name> e:farmworld:<util.random.int[-10000000].to[10000000]>,250,<util.random.int[-10000000].to[10000000]>"

blazing ploverBOT
#

(Agath) random Teleport height

blazing ploverBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

midnight apex
#

mustn't be a multiverse related solution btw. I could also imagine to tp them first on the right map and after a second send them to the random position

odd patio
#

that's a really big range

#

you probably just want this tag instead though:

#

!tag locationtag.random_offset

vernal steepleBOT
# odd patio !tag locationtag.random_offset

Returns a copy of this location, with the X/Y/Z offset by a random decimal value up to a given limit.
The limit can either be an X,Y,Z location vector like [3,1,3] or a single value like [3] (which is equivalent to [3,3,3]).
For example, for a location at 0,100,0, ".random_offset[1,2,3]" can return any decimal location within the cuboid from -1,98,-3 to 1,102,3.

Group

math

Returns

LocationTag

odd patio
#
  • teleport <player> <[spawn_location or center_location].random_offset[10000,0,10000]> or something like that is all you need
#

you're going to have a lot of lag re-generating chunks and checking if it's solid ground or not, though

#

just give them a boat if they're going to land in water

torn bearBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@midnight apex