Skip to content
home/templates/hide and seek
minigameAdvancednewmc 1.20.x – 1.21.x39 lines

hide and seek

hider/seeker minigame: hiders join via /has join, an admin starts the round with /has seek, seeker has 30 seconds before hunt begins. last hider standing wins. (no block-disguise — that requires a separate disguise plugin.)

vanilla Skriptno addons required.
hide-and-seek.sk39 lines
command /has <text>:
    trigger:
        if arg-1 is "join":
            if player is in {has.hiders::*}:
                send "&cYou're already a hider." to player
                stop
            add player to {has.hiders::*}
            # "random element of" + a list literal — the older
            # "random X out of Y" phrasing is NOT valid Skript.
            set {has.assigned.%uuid of player%} to random element of ("oak log", "stone", "dirt", "gravel", "sand")
            send "&aJoined Hide and Seek as a hider!" to player
            send "&7Hint block: &f%{has.assigned.%uuid of player%}%" to player
        else if arg-1 is "leave":
            remove player from {has.hiders::*}
            send "&7You left the round." to player

command /hasstart:
    permission: has.admin
    trigger:
        if size of {has.hiders::*} < 2:
            send "&cNeed at least 2 hiders." to player
            stop
        set {has.seeker} to player
        broadcast "&6Hide and Seek started! Seeker: &c%player%"
        broadcast "&7Seeker is blinded for &e30 seconds&7..."
        apply blindness 5 to player for 30 seconds
        wait 30 seconds
        broadcast "&c%{has.seeker}% &7is now hunting!"

on damage:
    if victim is in {has.hiders::*}:
        if attacker is {has.seeker}:
            remove victim from {has.hiders::*}
            broadcast "&c%attacker% &ffound &c%victim%! &7(%size of {has.hiders::*}% left)"
            teleport victim to spawn of (world "world")
            if size of {has.hiders::*} is 0:
                broadcast "&6&l===== SEEKER WINS ====="
                delete {has.seeker}

get it running

hide-and-seek.sk · 39 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    hide-and-seek.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/hide-and-seek.sk
  3. 3

    reload in-game

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

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

more minigame templates

comments