Skip to content

Conditions

Yevhen Harasymchuk edited this page May 23, 2026 · 2 revisions

Conditions

Conditions allow you to check the state of entities or objects to determine if they meet specific MythicMobs criteria.

%entity% instanceof activemob

Returns true if the checked entity is currently a valid MythicMob.

on damage of player:
    if attacker instanceof activemob:
        set {_am} to activemob of attacker
        broadcast "You were attacked by %displayname of activemob {_am}%!"

activemob %activemob% isdead

Returns true if the ActiveMob has died.

activemob %activemob% has threattable

Returns true if the ActiveMob has the ThreatTable feature enabled in its configuration.

on damage of player:
    if attacker instanceof activemob:
        set {_am} to activemob of attacker
        if activemob {_am} has threattable:
            dropcombat for activemob {_am}

activemob %activemob% has mythicspawner

Returns true if the ActiveMob was spawned by, and is still linked to, a MythicSpawner.

on mythicmob spawnevent:
    if activemob event-activemob has mythicspawner:
        set {_spawner} to mythicspawner of event-activemob
        broadcast "Mob spawned by %spawner name of {_spawner}%"

activemob %activemob% has immunitytable

Returns true if the ActiveMob has an immunity table enabled.

mythicspawner %mythicspawner% contains activemob %activemob%

Returns true if the specified ActiveMob belongs to the specified MythicSpawner.

%itemstack% is a mythicitem

Returns true if the given Skript itemstack matches a valid MythicItem defined in MythicMobs.

on right click:
    if player's tool is a mythicitem:
        send "You are holding a MythicItem!"

Clone this wiki locally