minecraft:behavior.jump_around_target

Allows an entity to jump around a target.

Properties

PropertyTypeDefaultWhat it does
filtersObject or List of object{"AND": null, "NOT": null, "OR": null, "all": null, "all_…Conditions that need to be met for the behavior to start.
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.
jump_cooldown_durationDecimal0.5The time in seconds to spend in cooldown before this goal can be used again.
jump_cooldown_when_hurt_durationDecimal0.1The time in seconds to spend in cooldown after being hurt before this goal can be used again.
last_hurt_durationDecimal2If the entity was hurt within these last seconds, the jump_cooldown_when_hurt_duration will be used instead of jump_cooldown_duration.
prepare_jump_durationDecimal0.5The time in seconds to spend preparing for the jump.
max_jump_velocityDecimal1.4Maximum velocity a jump can be performed at.
check_collisionBooleanfalseEnables collision checks when calculating the jump. Setting check_collision to true may affect performance and should be used with care.
entity_bounding_box_scaleDecimal0.7Scaling 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_ignoreInteger4If 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_targetObject{"max": 20, "min": 4}Target needs to be within this range for the jump to happen.
minDecimal0
maxDecimal0
landing_position_spread_degreesInteger90This 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_targetObject{"max": 8, "min": 4}The range deciding how close to and how far away from the target the landing position can be when jumping.
minDecimal0
maxDecimal0
required_vertical_spaceInteger4The number of blocks above the entity's head that has to be air for this goal to be usable.
snap_to_surface_block_rangeInteger10The number of blocks above and below from the jump target position that will be checked to find a surface to land on.
jump_anglesList 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.
priorityIntegermin 00
control_flagsList 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