minecraft:behavior.slime_attack

Causes the entity to grow tired every once in a while, while attacking.

Properties

PropertyTypeDefaultWhat it does
x_max_rotationDecimal10Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
y_max_rotationDecimal10Maximum rotation (in degrees), on the Y-axis, this entity can rotate while trying to look at the target.
speed_multiplierDecimal1During attack behavior, this multiplier modifies the entity's speed when moving toward the target.
grow_tired_cooldown_timeDecimal15
set_persistentBooleanfalseAllows the actor to be set to persist upon targeting a player
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Magma Cube uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.slime_attack": {
    "priority": 3
  }
}

Used by 2

Vanilla entities with minecraft:behavior.slime_attack in their definition:

Related components