Skip to content

Effects

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

Clone this wiki locally