Skip to content

Effects

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

Effects

Effects allow you to perform actions and modify the state of ActiveMobs, Spawners, and Loot.

1. ActiveMob Management

remove mythic from activemob %activemob%

Converts a MythicMob back into a standard vanilla Bukkit entity, removing all MythicMobs properties.

spawn mythicmob %string% at location %location% in world %world%

Spawns a new MythicMob by its internal name at the specified location.

on right click on dirt:
    set {_loc} to location of event-block
    set {_am} to spawn mythicmob "SkeletonKing" at location {_loc} in world event-world
    send "Spawned %displayname of activemob {_am}%!"

set [max]health of activemob %activemob% to %number%

Modifies the current or maximum health of the mob.

set target of activemob %activemob% to %entity%

Forces the ActiveMob to target a specific entity.

set [faction/stance/level] of activemob %activemob% to %string/number%

Updates the respective properties of the mob on the fly.

set faction of activemob {_am} to "Vampires"
set stance of activemob {_am} to "Aggressive"
set level of activemob {_am} to 5

trigger %string% for activemob %activemob% [with triggerentity %entity%]

Fires a specific MythicMobs trigger (~onDamaged, ~onInteract, etc.) for the mob.

trigger "bow_hit" for activemob {_am} with triggerentity attacker

make activemob %activemob% cast skill %string% with trigger %entity% at [target %entity% / location %location%]

Forces the mob to execute a specific skill.

Threat Table Management

  • dropcombat for activemob %activemob%
  • clear threattable of activemob %activemob%
  • remove threat of %entity% from activemob %activemob%
  • inc/dec threat of %entity% by %number% from activemob %activemob%

2. MythicSpawner Management

  • activate/deactivate mythicspawner %mythicspawner%
  • set [remaining]cooldown of mythicspawner %mythicspawner% to %number%
  • set [remaining]warmup of mythicspawner %mythicspawner% to %number%
  • set mobtype of mythicspawner %mythicspawner% to %string%
  • set moblevel of mythicspawner %mythicspawner% to %number%
  • make mythicspawner %mythicspawner% spawn
  • attach activemob %activemob% to mythicspawner %mythicspawner%

3. Loot Management

set [physical/other] loot for [lootbag] %lootbag% to %itemstacks/strings%

Modifies the drops before they are given to the player.

on mythicmob lootdrop:
    set physical loot for event-lootbag to diamond
    set other loot for event-lootbag to "exp 500"

4. MythicItem Management

Effects for giving, dropping, and taking MythicItems defined in your MythicMobs configuration.

⚠️ The item name must exactly match the internal MythicMobs item name (case-insensitive). If an unknown name is provided, a warning will be logged to the console.

give mythic item %string% [with amount %number%] to %players%

Gives a MythicItem to one or more players. If a player's inventory is full, leftover items are dropped at their feet.

on right click on emerald block:
    give mythic item "DragonSword" to player
    give mythic item "HealthPotion" with amount 3 to all players

drop mythic item %string% [with amount %number%] at %locations%

Drops a MythicItem naturally at one or more locations in the world.

on mythicmob death:
    drop mythic item "RareTreasure" with amount 2 at location of event-entity

take [amount %number%] mythic item %string% from %players%

Removes a specified amount of a MythicItem from one or more players' inventories. Items are removed slot by slot. If the player does not have enough, all available items of that type are removed.

on right click on gold block:
    if player has mythic item "DragonShard" with amount 5:
        take amount 5 mythic item "DragonShard" from player
        give mythic item "DragonSword" to player
        send "You have crafted the Dragon Sword!"
    else:
        send "You need 5 Dragon Shards!"

Clone this wiki locally