-
Notifications
You must be signed in to change notification settings - Fork 0
Effects
Effects allow you to perform actions and modify the state of ActiveMobs, Spawners, and Loot.
Converts a MythicMob back into a standard vanilla Bukkit entity, removing all MythicMobs properties.
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}%!"Modifies the current or maximum health of the mob.
Forces the ActiveMob to target a specific entity.
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 5Fires a specific MythicMobs trigger (~onDamaged, ~onInteract, etc.) for the mob.
trigger "bow_hit" for activemob {_am} with triggerentity attackermake activemob %activemob% cast skill %string% with trigger %entity% at [target %entity% / location %location%]
Forces the mob to execute a specific skill.
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%
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% spawnattach activemob %activemob% to mythicspawner %mythicspawner%
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"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.
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 playersDrops 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-entityRemoves 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!"Home
Documentation
Advanced Integrations