Skip to content
home/templates//sethome /home /delhome
commandsBeginnernewmc 1.20.x – 1.21.x33 lines

/sethome /home /delhome

players can set up to 3 home locations and teleport to them. names + persistence across reloads.

vanilla Skriptno addons required.
sethome.sk33 lines
command /sethome [<text>]:
    trigger:
        set {_name} to arg-1 ? "home"
        if size of {homes.%uuid of player%::*} >= 3:
            if {homes.%uuid of player%::%{_name}%} is not set:
                send "&cYou can only have 3 homes. Delete one first." to player
                stop
        set {homes.%uuid of player%::%{_name}%} to location of player
        send "&aHome &e%{_name}% &aset." to player

command /home [<text>]:
    trigger:
        set {_name} to arg-1 ? "home"
        if {homes.%uuid of player%::%{_name}%} is not set:
            send "&cNo home named &e%{_name}%&c." to player
            stop
        teleport player to {homes.%uuid of player%::%{_name}%}
        send "&aTeleported to home &e%{_name}%&a." to player

command /delhome <text>:
    trigger:
        if {homes.%uuid of player%::%arg-1%} is not set:
            send "&cNo home named &e%arg-1%&c." to player
            stop
        delete {homes.%uuid of player%::%arg-1%}
        send "&aDeleted home &e%arg-1%&a." to player

command /homes:
    trigger:
        send "&eYour homes:" to player
        loop {homes.%uuid of player%::*}:
            send "&8- &f%loop-index%" to player

get it running

sethome.sk · 33 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    sethome.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/sethome.sk
  3. 3

    reload in-game

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

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

more commands templates

comments