minecraft:behavior.leap_at_target

Allows monsters to jump at and attack their target. Can only be used by hostile mobs.

Properties

PropertyTypeDefaultWhat it does
ydDecimal0The height in blocks the mob jumps when leaping at its target
must_be_on_groundBooleantrueIf 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_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 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