-
Notifications
You must be signed in to change notification settings - Fork 27
Conditions
muhahahahe edited this page Jan 7, 2018
·
73 revisions
Use the listed conditions the same way it is discribed on the conditions manual of MythicMobs
-
- biomefix{b=[single/array];action=[boolean]}
- checks the casters or targets biome
example: - biomefix{b=DESERT,PLAINS;action=true}
- checks the casters or targets biome
-
- factionsflag{flag=[single/array];action=[boolean]}
- checks if the faction has a specific flag set or unset
example: - factionsflag{flag=firespread;action=false}
- checks if the faction has a specific flag set or unset
-
- hastarget{action=[boolean]}
- checks if the caster has a target
NOTE: *This only works on the caster, if you use it
in a TargetConditions it will throw an error!*
example: - hastarget{action=true}
- checks if the caster has a target
-
- inmobarena
- checks if the caster, target, or location is in a Mob Arena
Requires the MobArena Plugin
- checks if the caster, target, or location is in a Mob Arena
-
- isstunned{action=[boolean]}
- checks if the caster or target is stunned
This works also as TargetConditions: keep in mind to set the right targeter.
example: - isstunned{action=true}
- checks if the caster or target is stunned
-
- lastdamagecause{cause=[BukkitDamageCause];damager=[BukkitEntityType];action=[boolean]}
- checks the last damage event on the caster or target
(Note: entity for check must be a MythicMob)
example: - lastdamagecause{cause=PROJECTILE;damager=PLAYER;action=true}
- checks the last damage event on the caster or target
-
- mobsinradius{mobtypes=[single/array/ALL];a=[numeric];r=[numeric];action=[boolean]}
- checks the amount of mobs in a given area around the caster/target/location
example: - mobsinradius{m=ALL;a=5to10;r=20;action=TRUE}
- checks the amount of mobs in a given area around the caster/target/location
-
- wgdenyspawnflag{types=[BukkitEntityType];action=[boolean]}
- checks if the region has denied the spawning of defined entities(usually used in randomspawns)
example: - wgdenyspawnflag{types=ZOMBIE,SKELETON;action=false}
- checks if the region has denied the spawning of defined entities(usually used in randomspawns)
-
- wgstateflag{flag=[WorldGuardFlag];action=[boolean]}
- checks if the region has set the defined flag
example: - wgstateflag{flag=mob-spawning;action=false}
- checks if the region has set the defined flag
-
- attackable{cause=[BukkitEntityDamageEvent];action=[boolean]}
- checks if the target is attackable by the caster with this DamageEvent
example: - attackable{cause=PROJECTILE;action=false}
- checks if the target is attackable by the caster with this DamageEvent
-
- behind{view=[angle_value];action=[boolean]}
- checks if the caster is behind of its target
example: - behind
- checks if the caster is behind of its target
-
- damageable{cause=[BukkitEntityDamageEvent];action=[boolean]}
- checks if the target is damageable with this DamageEvent
example: - damageable{cause=PROJECTILE;action=true}
- checks if the target is damageable with this DamageEvent
-
- hasmeta{meta="tag=[tagname];value=[metavalue];type=[boolean/numeric/string]";compareself=[boolean];action=[boolean]}
- compares the meta of 2 entities, can also used on caster itself
example: - hasmeta{meta="tag=lastdamagedentity;value=<target.uuid>;
type=STRING";cs=true;action=true}
- compares the meta of 2 entities, can also used on caster itself
-
- infront{view=[angle_value];action=[boolean]}
- checks if the caster is infront of its target
example: - infront
- checks if the caster is infront of its target
-
- parsedstance{s="<variable>";cs=[boolean];action=[boolean]}
- this condition can check if a variable is set as a stance
usefull with parsedstance mechanic
(NOTE: if cs is set to true it will always check the caster)
example: - parsedstance{s="<target.uuid></target.uuid>";cs=true;action=true}
- this condition can check if a variable is set as a stance
-
- vdistance{d=[numeric];action=[boolean]}
- checks the height between target and caster
example: - vdistance{d=2to3;action=true}
- checks the height between target and caster
This Wiki is made by muhahahahe | It could contain mistakes, misspelling, and grammar issues