Skip to content
home/templates//spawn command (with warmup)
commandsBeginnermc 1.20.x – 1.21.x11 lines

/spawn command (with warmup)

teleports the player to the spawn point of the main world. 3-second warmup with cancel-on-move.

vanilla Skriptno addons required.
spawn-command.sk11 lines
command /spawn:
    trigger:
        send "&7Teleporting in &e3 &7seconds…" to player
        set {_loc} to location of player
        wait 3 seconds
        if distance between location of player and {_loc} is greater than 1:
            send "&cYou moved! Teleport cancelled." to player
            stop
        teleport player to spawn of world "world"
        send "&aWelcome back to spawn!" to player

get it running

spawn-command.sk · 11 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    spawn-command.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/spawn-command.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload spawn-command
that's it — your script is live. hop in-game to try it.
/ related templates

more commands templates

comments