Changes
Page history
added example from slipperysmurf
authored
Mar 09, 2026
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/Conditions/children.md
View page @
98fb14c7
...
...
@@ -18,3 +18,32 @@ Checks how many children the caster has.
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
```
yaml
children_overflow_mob
:
Type
:
ARMOR_STAND
Skills
:
-
skill{s=children_summon_more} @self ~onTimer:20
children_mob
:
Type
:
PIG
```
```
yaml
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*