Changes
Page history
updated layout and informations
authored
Aug 09, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Mobs/ai/goals/meleeattack.md
View page @
40a4a258
Goal: meleeAttack
## Description
--------------
Causes the mob to move to and melee attack its target
Causes the mob to move to and melee attack its target
### Attributes
## Attributes
| Attribute | Aliases | Description | Default |
| Attribute | Aliases | Description | Default |
|-----------|---------|-------------------------|:-------:|
|-----------|-----------|----------------------------------------------------------------------|---------|
| speed | s | Movement speed modifier | 1 |
| attackReach | | The reach of the attack | 4 |
### Examples
## Examples
```
yaml
```
yaml
ExampleMob
:
ExampleMob
:
Type
:
Skeleton
Type
:
ZOMBIE
AIGoalSelectors
:
AIGoalSelectors
:
-
clear
-
clear
-
meleeattack{
speed=1
}
-
meleeattack{
attackReach=6
}
```
```
\ No newline at end of file