reverted dante authored by Lxlp's avatar Lxlp
=========================== ## Description
## Description:
Change pathfindergoals. It is not possible to use every goal on every Change pathfindergoals. It is not possible to use every goal on every
entity. To change the ai of an entity, you need to use clear first. entity. To change the ai of an entity, you need to use clear first.
After that you can use the runaigoalselector and add the goals you need. After that you can use the runaigoalselector and add the goals you need.
...@@ -13,8 +10,14 @@ existing goals of the entity. ...@@ -13,8 +10,14 @@ existing goals of the entity.
A list of AI Goals can be found A list of AI Goals can be found
[here](/Mobs/Custom-AI#ai-goal-selectors) [here](/Mobs/Custom-AI#ai-goal-selectors)
## Examples:
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| goal | | The ai goal selector you want to append | |
## Examples
```yaml ```yaml
TimeToFlee: TimeToFlee:
ChangePatchfinderGoalExample: ChangePatchfinderGoalExample:
...@@ -24,5 +27,5 @@ TimeToFlee: ...@@ -24,5 +27,5 @@ TimeToFlee:
- runaigoalselector{goal=randomstroll} - runaigoalselector{goal=randomstroll}
``` ```
## Aliases: ## Aliases
[x] aigoal - [x] aigoal
\ No newline at end of file \ No newline at end of file