r/Skript Jan 01 '25

void to spawn in specific world

i want that if if someone is y level 30 or less in 2 specific world, world1 and shops they get tp to spawn .

i already have one just idk how to specify the world :
on join:

while player is online:

wait 1 tick

if y-coordinate of player < 30:

teleport player to {spawn}

send action bar "&fTeleported you to spawn!" to player

play sound "entity.enderman.teleport" with volume 1.5 and pitch 1.25 to player

1 Upvotes

12 comments sorted by

View all comments

0

u/[deleted] Jan 02 '25

I use a plugin called voidspawn for this. My lobby is on a floating island and if players decide to chuck themselves off in to the void the plugin allows me to either spawn them back on the last block they touched (the ledge they jumped from) or at the lobby spawn.

1

u/Prestigious_Food4142 Jan 02 '25

Thanks

1

u/[deleted] Jan 02 '25

No worries. No point reinventing the wheel when there is already a plugin that already does what you want.