minecraft:behavior.slime_attack
Causes the entity to grow tired every once in a while, while attacking.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
x_max_rotation | Decimal | 10 | Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target. |
y_max_rotation | Decimal | 10 | Maximum rotation (in degrees), on the Y-axis, this entity can rotate while trying to look at the target. |
speed_multiplier | Decimal | 1 | During attack behavior, this multiplier modifies the entity's speed when moving toward the target. |
grow_tired_cooldown_time | Decimal | 15 | |
set_persistent | Boolean | false | Allows the actor to be set to persist upon targeting a player |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.nearest_attackable_targetbehavior.melee_box_attackbehavior.ranged_attackbehavior.stomp_turtle_eggbehavior.leap_at_targetbehavior.nearest_prioritized_attackable_targetbehavior.aquatic_charge_attackbehavior.charge_held_itembehavior.guardian_attackbehavior.ocelotattackbehavior.charge_attackbehavior.delayed_attackbehavior.dragonchargeplayerbehavior.dragonflamingbehavior.dragonstrafeplayerbehavior.fire_at_targetbehavior.knockback_roarbehavior.melee_attackbehavior.ram_attackbehavior.roarbehavior.send_eventbehavior.sonic_boombehavior.stomp_attackbehavior.summon_entity