ConditionEntity

variableInRange

since v4.6

Checks if the given numeric variable is within a certain range.

Aliases

varinrangevarrange

Configuration Fields (1)

NameTypeDefaultDescription
value
val, v
PlaceholderStringA number range to match

Examples & Notes

Examples

ShootCheck:
  Cooldown: 0
  Conditions:
  - variableInRange{var=caster.shootsLeft;value=>0} castInstead ShootThemUp
  Skills:
  - message{m="&7Reloading..."} @self
  - delay 0
  - setskillcooldown{skill=ShootCheck;seconds=2} @self
  - delay 20
  - setvariable{var=caster.shootsLeft;value=10} @self
  - message{m="&7Reloaded!"} @self

Universal Condition Options

Author:
Ashijin
Generated from @Mythic* annotations in the MythicMobs source.