minecraft:behavior.jump_around_target
Allows an entity to jump around a target.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
filters | Object or List of object | {"AND": null, "NOT": null, "OR": null, "all": null, "all_… | Conditions that need to be met for the behavior to start. |
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. |
jump_cooldown_duration | Decimal | 0.5 | The time in seconds to spend in cooldown before this goal can be used again. |
jump_cooldown_when_hurt_duration | Decimal | 0.1 | The time in seconds to spend in cooldown after being hurt before this goal can be used again. |
last_hurt_duration | Decimal | 2 | If the entity was hurt within these last seconds, the jump_cooldown_when_hurt_duration will be used instead of jump_cooldown_duration. |
prepare_jump_duration | Decimal | 0.5 | The time in seconds to spend preparing for the jump. |
max_jump_velocity | Decimal | 1.4 | Maximum velocity a jump can be performed at. |
check_collision | Boolean | false | Enables collision checks when calculating the jump. Setting check_collision to true may affect performance and should be used with care. |
entity_bounding_box_scale | Decimal | 0.7 | Scaling temporarily applied to the entity's AABB bounds when jumping. A smaller bounding box reduces the risk of collisions during the jump. When check_collision is true it also increases the chance of being able to jump when close to obstacles. |
line_of_sight_obstruction_height_ignore | Integer | 4 | If the entity's line of sight towards its target is obstructed by an obstacle with a height below this number, the obstacle will be ignored, and the goal will try to find a valid landing position. |
valid_distance_to_target | Object | {"max": 20, "min": 4} | Target needs to be within this range for the jump to happen. |
min | Decimal | 0 | |
max | Decimal | 0 | |
landing_position_spread_degrees | Integer | 90 | This angle (in degrees) is used for controlling the spread when picking a landing position behind the target. A zero spread angle means the landing position will be straight behind the target with no variance. A 90 degree spread angle means the landing position can be up to 45 degrees to the left and to the right of the position straight behind the target's view direction. |
landing_distance_from_target | Object | {"max": 8, "min": 4} | The range deciding how close to and how far away from the target the landing position can be when jumping. |
min | Decimal | 0 | |
max | Decimal | 0 | |
required_vertical_space | Integer | 4 | The number of blocks above the entity's head that has to be air for this goal to be usable. |
snap_to_surface_block_range | Integer | 10 | The number of blocks above and below from the jump target position that will be checked to find a surface to land on. |
jump_angles | List of decimal | [40, 55, 60, 75, 80] | The jump angles in float degrees that are allowed when performing the jump. The order in which the angles are chosen is randomized. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Breeze uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.jump_around_target": {
"jump_cooldown_duration": 0.5,
"check_collision": false,
"filters": {
"all_of": [
{
"any_of": [
{
"test": "in_water",
"value": true
},
{
"test": "on_ground",
"value": true
}
]
},
{
"test": "is_riding",
"value": false
},
{
"test": "in_lava",
"value": false
}
]
},
"entity_bounding_box_scale": 0.7,
"landing_position_spread_degrees": 90,
"required_vertical_space": 4,
"jump_angles": [
40.0,
55.0,
60.0,
75.0,
80.0
],
"jump_cooldown_when_hurt_duration": 0.1,
"landing_distance_from_target": {
"min": 4.0,
"max": 8.0
},
"last_hurt_duration": 2.0,
"line_of_sight_obstruction_height_ignore": 4,
"max_jump_velocity": 1.4,
"prepare_jump_duration": 0.5,
"priority": 5,
"snap_to_surface_block_range": 10,
"valid_distance_to_target": {
"min": 4.0,
"max": 20.0
}
}
}Used by 1
Vanilla entities with minecraft:behavior.jump_around_target in their definition:
Related components
behavior.hurt_by_targetbehavior.follow_target_captainbehavior.defend_trusted_targetbehavior.defend_village_targetbehavior.look_at_targetbehavior.move_around_targetbehavior.move_towards_targetbehavior.owner_hurt_by_targetbehavior.owner_hurt_targetbehavior.stalk_and_pounce_on_targetbehavior.target_when_pushedbehavior.wither_target_highest_damagebehavior.follow_target_leaderbehavior.vex_copy_owner_target