|
|
Mechanic: setFaction
|
|
|
=================
|
|
|
|
|
|
## Description:
|
|
|
|
|
|
Sets or changes the target mob's faction.
|
|
|
|
|
|
Attributes
|
|
|
----------
|
|
|
## Attributes:
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|-----------|------------|----------------------------------------------------------------------------------------------------------------|---------------|
|
|
|
| faction | | The name of the faction to apply to the mob. | NONE |
|
|
|
|
|
|
Examples
|
|
|
--------
|
|
|
|
|
|
Skills:
|
|
|
- setFaction{faction=Hostile} @self ~onSpawn
|
|
|
## Examples:
|
|
|
|
|
|
Sets the faction of the mob to "Hostile" when the mob spawns. |
|
|
\ No newline at end of file |
|
|
Sets the faction of the mob to "Hostile" when the mob spawns.
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- setFaction{faction=Hostile} @self ~onSpawn
|
|
|
``` |
|
|
\ No newline at end of file |