Mechanic
setfaction
Sets the target mob's faction
Configuration Fields (1)
| Name | Type | Default | Description |
|---|---|---|---|
| faction f | PlaceholderString | — | The faction to set on the target mob |
Examples & Notes
Example
Force every mob within 16 blocks to join the undead faction at spawn:
SkeletonKing:
Type: WITHER_SKELETON
Skills:
- setfaction{f=undead} @MobsInRadius{r=16} ~onSpawn
Notes
- The faction string is case-insensitive but stored verbatim.
- Use faction condition to branch on faction membership.
- Clearing a faction:
setfaction{f=""}.
Universal Mechanic Options
- Author:
- Ashijin