ConditionCaster

children

Tests how many children the caster has

Configuration Fields (1)

NameTypeDefaultDescription
amount
a
RangedInt1The amount of children

Examples & Notes

Examples

  Conditions:
  - children{a=1} true
  Conditions:
  - children{a=>2} true

This example showcases a parent mob that will summon children until it reaches 3 total, and then will stop until 1 is killed or de-spawned

children_overflow_mob:
  Type: ARMOR_STAND
  Skills:
  - skill{s=children_summon_more} @self ~onTimer:20
children_mob:
  Type: PIG
children_summon_more:
  Conditions:
  - children{a=<3} orelsecast children_too_many
  Skills:
  - summon{m=children_mob;amount=1}
  - delay 0
  - message{m="<green>Child summoned, there are now <caster.children.size> children!"} @PIR{r=10}

children_too_many:
  Skills:
  - message{m="<red>No children summoned, already 3 or more!"} @PIR{r=10}

This example was kindly provided by slipperysmurf

Universal Condition Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.