minecraft:behavior.leap_at_target
Allows monsters to jump at and attack their target. Can only be used by hostile mobs.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
yd | Decimal | 0 | The height in blocks the mob jumps when leaping at its target |
must_be_on_ground | Boolean | true | If true, the mob will only jump at its target if its on the ground. Setting it to false will allow it to jump even if its already in the air |
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 Cave Spider uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.leap_at_target": {
"must_be_on_ground": false,
"priority": 4,
"yd": 0.4
}
}Used by 5
Vanilla entities with minecraft:behavior.leap_at_target in their definition:
Related components
behavior.nearest_attackable_targetbehavior.melee_box_attackbehavior.ranged_attackbehavior.stomp_turtle_eggbehavior.nearest_prioritized_attackable_targetbehavior.aquatic_charge_attackbehavior.charge_held_itembehavior.guardian_attackbehavior.ocelotattackbehavior.slime_attackbehavior.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