-
Notifications
You must be signed in to change notification settings - Fork 27
Conditions
muhahahahe edited this page Jan 9, 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
-
- facingdirection{d=[CARDINAL-POINT];action=[BOOLEAN]}
- checks if the target looks in a specific direction
example: - facingdirection{f=SOUTH_WEST;action=true}
- checks if the target looks in a specific direction
-
- 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
-
- hasspawner{names=[SINGLE/ARRAY/ANY];action=[BOOLEAN]}
- checks if the MythicMob comes from that spawner
example: - hasspawner{names=MySpawner;action=true}
- checks if the MythicMob comes from that spawner
-
- 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
-
- infaction{faction=[STRING/ARRAY];action=[BOOLEAN]}
- checks if the caster is in the faction or one of the factions
NOTE: only works on a MythicMob
example: - infaction{faction=MyFaction;action=true}
- checks if the caster is in the faction or one of the factions
-
- 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
-
- inmotion{action=[BOOLEAN]}
- checks if the target is in motion
wont work on non-living entities or players
example: - inmotion{action=true}
- checks if the target is in motion
-
- isburning{range=[VALUE];action=[BOOLEAN]}
- checks if the targeted entity is burning
when a range is provided checks if the amount of ticks provided matches with FIRE_TICKSexample: - isburning{action=true}
- checks if the targeted entity is burning
-
- 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
-
- isvehicle{action=[BOOLEAN]}
- checks if the target is riding something
example: - isvehicle{action=true}
- checks if the target is riding something
-
- 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/NUMERIC-RANGE];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
-
- owneralive{action=[boolean]}
- checks if the owner is online, alive or in the same world
example: - owneralive{action=true}
- checks if the owner is online, alive or in the same world
-
- testfor{vc="[valid_testfor_stuff]";action=[BOOLEAN]}
- checks the caster or target with valid testfor stuff
example: - testfor{vc="XpLevel:20";action=true}
- checks the caster or target with valid testfor stuff
-
- 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{view=90;action=true}
- checks if the caster is behind of its target
-
- crouching{action=[BOOLEAN]}
- checks if the targeted player is crouching
example: - crouching{action=true}
- checks if the targeted player is crouching
-
- 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
-
- eir{types=[SINGLE/ARRAY/ALL];amount=[VALUE/VALUE-RANGE];radius=[VALUE];action=[boolean]}
- checks if the entities are in the given range
example: - eir{types=ARMOR_STAND;amount=1;radius=5;action=true}
- checks if the entities are in the given range
-
- hasmeta{meta="tag=[TAGNAME];value=[TAGVALUE];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{view=10;action=false}
- checks if the caster is infront of its target
-
- insolidblock{action=[BOOLEAN]}
- checks if the targeted entity or location is in a solid block
example: - insolidblock{action=true}
- checks if the targeted entity or location is in a solid block
-
- isgoggling{action=[BOOLEAN]}
- checks if the player is looking at something
example: - isgoggling{action=true}
- checks if the player is looking at something
-
- ispresent{action=[BOOLEAN]}
- checks if an entity is present
example: - ispresent{action=true}
- checks if an entity is present
-
- isspinning{action=[BOOLEAN]}
- checks if the player is spinning
use with the playerspin mechanic
example: - isspinning{action=true}
- checks if the player is spinning
-
- jumping{action=[BOOLEAN]}
- checks if the targeted entity is jumping
example: - jumping{action=true}
- checks if the targeted entity is jumping
-
- leir{types=[SINGLE/ARRAY/ALL];amount=[VALUE/VALUE-RANGE];radius=[VALUE];action=[boolean]}
- checks for the living entities in the given range
example: - leir{types=ZOMBIE,SQUID;amount=2;radius=15;action=true}
- checks for the living entities in the given range
-
- lookatme{fov=[DOUBLE];yo=[DOUBLE];debug=[BOOLEAN]}
- checks if the target is looking at the caster
the example uses the default values that are fine for almost any entity
with debug set to true you will get a console output with the fov and yo
example: - lookatme{fov=1.999;yo=-0.4}
- checks if the target is looking at the caster
-
- onsolidblock{action=[BOOLEAN]}
- checks if the targeted entity or location is on a solid block
example: - onsolidblock{action=true}
- checks if the targeted entity or location is on a solid block
-
- ownsitem{list="where=[ANY/HAND/ARMOR/INVENTORY]";material=[ANY/MATERIALTYPE];amount=[VALUE/VALUE-RANGE];lore=[LORETEXT]";action=[BOOLEAN]}
- checks one or multiple slots (seperated by && for AND or || for OR)
of the target if it has an item or material
example: - ownsitem{list="where=HAND;material=DIAMOND_SWORD;amount=1 && where=INVENTORY;material=DIAMOND_SWORD;amount=1to2";action=true}
- checks one or multiple slots (seperated by && for AND or || for OR)
-
- ownsitemsimple{where=[ANY/HAND/ARMOR/INVENTORY];material=[ANY/MATERIALTYPE];amount=[VALUE/VALUE-RANGE];lore=[LORETEXT];action=[BOOLEAN]}
- same as ownsitem but can only check 1 slot
example: - ownsitemsimple{where=HAND;material=SAND;amount=1;action=true}
- same as ownsitem but can only check 1 slot
-
- 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>";cs=true;action=true}
- this condition can check if a variable is set as a stance
-
- pir{amount=[VALUE/VALUE-RANGE];radius=[VALUE];action=[boolean]}
- checks if the amount of players are in the given range
example: - pir{amount=5;radius=10;action=true}
- checks if the amount of players are in the given range
-
- playertime{time=[VALUE/VALUE-RANGE];action=[boolean]}
- checks the targeted player's time only
use it with playertime mechanic
example: - playertime{time=0to12000;action=true}
- checks the targeted player's time only
-
- playerweather{weather=[WEATHERTYPE];action=[boolean]}
- checks the targeted player's weather only
use it with playerweather mechanic
example: - playerweather{weather=CLEAR;action=true}
- checks the targeted player's weather only
-
- relativedirection{angle=[VALUE/VALUE-RANGE];action=[BOOLEAN]}
- checks the direction to the target from the caster
example: - relativedirection{angle=90;action=false}
- checks the direction to the target from the caster
-
- running{action=[BOOLEAN]}
- checks if the targeted player is running/sprinting
example: - running{action=true}
- checks if the targeted player is running/sprinting
-
- samefaction{faction=[STRING/ARRAY];action=[BOOLEAN]}
- checks if the caster and target are in the same faction or one of the factions
NOTE: only works on a MythicMob
example: - samefaction{faction=MyFaction;action=true}
- checks if the caster and target are in the same faction or one of the factions
-
- samespawner{action=[BOOLEAN]}
- checkes if the target MythicMob comes from the same spawner as the caster
example: - samespawner{action=true}
- checkes if the target MythicMob comes from the same spawner as the caster
-
- sameworld{action=[BOOLEAN]}
- checks if the caster and targeted entity or location are in the same world
example: - sameworld{action=true}
- checks if the caster and targeted entity or location are in the same world
-
- sleeping{action=[boolean]}
- checks if the targeted player is sleeping
example: - sleeping{action=true}
- checks if the targeted player is sleeping
-
- 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