-
Notifications
You must be signed in to change notification settings - Fork 0
Conditions
Conditions allow you to check the state of entities or objects to determine if they meet specific MythicMobs criteria.
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}%!"Returns true if the ActiveMob has died.
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}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}%"Returns true if the ActiveMob has an immunity table enabled.
Returns true if the specified ActiveMob belongs to the specified MythicSpawner.
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!"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) andmythic itemare accepted.
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."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."Home
Documentation
Advanced Integrations