minecraft:behavior.jump_to_block
Allows an entity to jump to another random block.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
search_width | Integer1 to 15 | 8 | The width (in blocks, in range [1, 15]) of the search box, centered around the mob. |
search_height | Integer1 to 15 | 10 | The height (in blocks, in range [1, 15]) of the search box, centered around the mob. |
minimum_path_length | Integer | 5 | The minimum length (in blocks) of the mobs path to a block, in order to consider jumping to it. |
minimum_distance | Integer | 2 | The minimum distance (in blocks) from the mob to a block, in order to consider jumping to it. |
scale_factor | Decimal | 0.7 | The scalefactor of the bounding box of the mob while it is jumping. |
max_velocity | Decimal | 1.5 | The maximum velocity with which the mob can jump. |
cooldown_range | Object | {"max": 20, "min": 10} | Minimum and maximum cooldown time-range (positive, in seconds) between each attempted jump. |
min | Decimal | 0 | |
max | Decimal | 0 | |
preferred_blocks | List of text or object | [] | Blocks that the mob prefers jumping to. |
preferred_blocks_chance | Decimal0 to 1 | 1 | Chance (between 0.0 and 1.0) that the mob will jump to a preferred block, if in range. Only matters if preferred blocks are defined. |
forbidden_blocks | List of text or object | [] | Blocks that the mob can't jump to. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Frog uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.jump_to_block": {
"cooldown_range": {
"min": 5,
"max": 7
},
"priority": 10,
"max_velocity": 1,
"forbidden_blocks": [
{
"name": "minecraft:water"
}
],
"minimum_distance": 1,
"minimum_path_length": 2,
"preferred_blocks": [
{
"name": "minecraft:waterlily"
},
{
"name": "minecraft:big_dripleaf"
}
],
"preferred_blocks_chance": 0.5,
"scale_factor": 0.6,
"search_height": 4,
"search_width": 8
}
}Used by 2
Vanilla entities with minecraft:behavior.jump_to_block in their definition:
Related components
behavior.random_strollbehavior.random_look_aroundbehavior.equip_itembehavior.move_towards_home_restrictionbehavior.timer_flag_1behavior.look_at_entitybehavior.move_towards_dwelling_restrictionbehavior.drink_potionbehavior.squid_divebehavior.squid_idlebehavior.squid_move_away_from_groundbehavior.squid_out_of_waterbehavior.croakbehavior.dragondeathbehavior.drink_milkbehavior.emergebehavior.investigate_suspicious_locationbehavior.lay_downbehavior.napbehavior.rise_to_liquid_levelbehavior.rollbehavior.silverfish_merge_with_stonebehavior.silverfish_wake_up_friendsbehavior.sleep