author | ms.author | title | description | ms.service |
---|---|---|---|---|
iconicNurdle |
mikeam |
Entity Documentation - minecraft:behavior.slime_attack |
A reference document detailing the 'behavior.slime_attack' entity goal |
minecraft-bedrock-edition |
minecraft:behavior.slime_attack
enables mobs with minecraft:movement.jump
to path towards their target like a slime
or magma_cube
does to attack.
Important
In order to attack, the entity must have a runtime_identifier
set to minecraft:slime
and a variant component with a value greater than 1. Otherwise it will still path towards a target but it will not cause damage.
Important
minecraft:behavior.slime_attack
requires a target in order to work properly. Target can be determined by using one of the following behaviors:
Important
minecraft:behavior.slime_attack
requires an attack attribute in order to work properly.
minecraft:attack
Name | Default Value | Type | Description |
---|---|---|---|
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
set_persistent | false | Boolean | Allows the entity to be set to persist upon targeting a player |
speed_multiplier | 1 | Decimal | During attack behavior, this multiplier modifies the entity's speed when moving toward the target. |
x_max_rotation | 10 | Decimal | Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target. |
y_max_rotation | 10 | Decimal | Maximum rotation (in degrees), on the Y-axis, this entity can rotate while trying to look at the target. |
"minecraft:behavior.slime_attack":{
"priority": 2,
"set_persistent": true,
"speed_multiplier": 3.0,
"x_max_rotation": 15.0,
"y_max_rotation": 15.0
}
"minecraft:behavior.slime_attack": {
"priority": 3
}