Conditions - bedwarshurts/AlchemistMMExtension GitHub Wiki

IsInFactionCondition

Checks if the entity is in the one of the specified factions while taking into account the multi-faction system. For example if you check for the "pyro" faction and the entity is in the faction "pyro,boss" this will return true.

Note

This implements the IEntityCondition interface

Arguments

  • factions - The factions to check for

Example

- isinfaction{faction=Flamable} true

IsTriggerCondition

Checks if the target entity is the trigger of the skill

Note

This implements the ISkillMetaCondition interface

Note

In case of targeters that return multiple entities, only one needs to match for the condition to be true

Warning

In case of targeters that return no entities the condition will always return false

Example

- istrigger true

OxygenLevelCondition

Checks if the entity has the specified oxygen level

Note

This implements the IEntityCondition interface

Tip

You may use > < to check for higher or lower than the oxygen level specified

Arguments

  • air - The time of air the entity has left, in ticks

Example

- oxygenlevel{air=<2} true

StringContainsCondition

Checks if a string is contained within another

Note

This implements the ISkillMetaCondition interface

Tip

This supports MythicPlaceholders

Arguments

  • s - The string to check if it contains the substring
  • c - The substring

Example

- stringcontains{s=Hello World;c=World} true

IsYLevelCondition

Checks if the origin of the SkillMetadata is at a specific Y Level

Note

This implements the ISkillMeta interface

Tip

< and > operators are supported

Tip

Mythic placeholders are supported

Warning

This does not support Math

Arguments

  • y - The y level

Example

- isylevel{y=<35} true

⚠️ **GitHub.com Fallback** ⚠️