minecraft:behavior.stalk_and_pounce_on_target

Allows a mob to stalk a target, then once within range pounce onto a target, on success the target will be attacked dealing damage defined by the attack component. On failure, the mob will risk getting stuck

Properties

PropertyTypeDefaultWhat it does
stalk_speedDecimal1.2The movement speed in which you stalk your target
max_stalk_distDecimal10The maximum distance away a target can be before the mob gives up on stalking
leap_heightDecimal0.9The height in blocks the mob jumps when leaping at its target
leap_distDecimal0.8The distance in blocks the mob jumps in the direction of its target
pounce_max_distDecimal5The maximum distance away from the target in blocks to begin pouncing at the target
strike_distDecimal2The max distance away from the target when landing from the pounce that will still result in damaging the target
interest_timeDecimal2The amount of time the mob will be interested before pouncing. This happens when the mob is within range of pouncing
stuck_timeDecimal2The amount of time the mob will be stuck if they fail and land on a block they can be stuck on
set_persistentBooleanfalseAllows the actor to be set to persist upon targeting a player
stuck_blocksObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Blocks that the mob can get stuck in after a pounce.
testText—The name of the test to apply.
subjectBoolean or Integer or Decimal or Text—The subject of this filter test.
operatorBoolean or Integer or Decimal or Text—The comparison to apply with 'value'.
domainBoolean or Integer or Decimal or Text—The domain the test should be performed in.
valueBoolean or Integer or Decimal or Text—The value being compared with the test.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Fox uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.stalk_and_pounce_on_target": {
    "priority": 7,
    "stalk_speed": 1.2,
    "max_stalk_dist": 12.0,
    "leap_height": 0.9,
    "leap_dist": 0.8,
    "pounce_max_dist": 5.0,
    "interest_time": 2.0,
    "stuck_time": 2.0,
    "strike_dist": 2.0,
    "stuck_blocks": {
      "test": "is_block",
      "subject": "block",
      "operator": "==",
      "value": "snow_layer"
    }
  }
}

Used by 1

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

Related components