Skip to content

Conditions

Yevhen Harasymchuk edited this page May 25, 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!"

%itemstack% is [a] mythic item

Returns true if the given item is a valid MythicMobs item. Supports negation (isn't).

on right click:
    if player's tool is a mythic item:
        send "You are holding a MythicItem!"
    if player's tool isn't a mythic item:
        send "This is just a regular item."

Note: Both mythicitem (old syntax) and mythic item are accepted.


%itemstack% is [a] mythic item %string%

Returns true if the given item matches a specific MythicMobs item by its internal name. Supports negation (isn't).

on right click:
    if player's tool is a mythic item "DragonSword":
        send "You are holding the Dragon Sword!"
    if player's tool isn't a mythic item "DragonSword":
        send "This is not the Dragon Sword."

%player% has mythic item %string% [with amount %number%]

Returns true if the player has at least the specified amount of a MythicItem in their inventory. Amount defaults to 1 if not provided. Supports negation (doesn't have).

on right click:
    if player has mythic item "DragonShard" with amount 5:
        send "You have enough shards!"
    if player doesn't have mythic item "DragonShard":
        send "You need at least one Dragon Shard."