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
| Property | Type | Default | What it does |
|---|---|---|---|
stalk_speed | Decimal | 1.2 | The movement speed in which you stalk your target |
max_stalk_dist | Decimal | 10 | The maximum distance away a target can be before the mob gives up on stalking |
leap_height | Decimal | 0.9 | The height in blocks the mob jumps when leaping at its target |
leap_dist | Decimal | 0.8 | The distance in blocks the mob jumps in the direction of its target |
pounce_max_dist | Decimal | 5 | The maximum distance away from the target in blocks to begin pouncing at the target |
strike_dist | Decimal | 2 | The max distance away from the target when landing from the pounce that will still result in damaging the target |
interest_time | Decimal | 2 | The amount of time the mob will be interested before pouncing. This happens when the mob is within range of pouncing |
stuck_time | Decimal | 2 | The amount of time the mob will be stuck if they fail and land on a block they can be stuck on |
set_persistent | Boolean | false | Allows the actor to be set to persist upon targeting a player |
stuck_blocks | Object or List of object | {"AND": null, "NOT": null, "OR": null, "all": null, "all_… | Blocks that the mob can get stuck in after a pounce. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.hurt_by_targetbehavior.follow_target_captainbehavior.defend_trusted_targetbehavior.defend_village_targetbehavior.jump_around_targetbehavior.look_at_targetbehavior.move_around_targetbehavior.move_towards_targetbehavior.owner_hurt_by_targetbehavior.owner_hurt_targetbehavior.target_when_pushedbehavior.wither_target_highest_damagebehavior.follow_target_leaderbehavior.vex_copy_owner_target