Changes
Page history
Create Mobs/ai/goals/fleeFaction
authored
Oct 23, 2023
by
Amy
Show whitespace changes
Inline
Side-by-side
Mobs/ai/goals/fleeFaction.md
0 → 100644
View page @
a6fa4b77
## Description
Causes the mob to flee from a specific faction.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| distance | d | The distance for targets to be from the mob itself | 4 |
| speed | s | The speed at which to flee | 1.2 |
| safespeed | ss | The speed at which to flee once a safe distance (50 blocks) away | 1 |
| faction | f | The faction to flee from | |
## Examples
```
yaml
ExampleMob
:
Type
:
ZOMBIE
AIGoalSelectors
:
-
clear
-
fleefaction{distance=5;speed=2;safespeed=2;faction=somefaction}
```
\ No newline at end of file