Skip to main content

Entity AI goal reference (20/41)

This page carries the AI goal (behavior) pages of MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). IDs, property names, types, default values and JSON are as in the original. The full list is in the index.

minecraft:behavior.jump_around_target​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_jump.around_target.md)

Allows an entity to jump around a target.

[!Note] In format version 1.26.20, valid_distance_to_target and landing_distance_from_target must be specified as Float Range objects (objects with range_min / range_max). Legacy scalar or array forms no longer parse.

[!Note] This item requires a format version of at least 1.21.30.

Entity Jump Around Target Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
check_collisionfalseBoolean true/falseEnables collision checks when calculating the jump. Setting check_collision to true may affect performance and should be used with care.
control_flags[]Control Flags choices
entity_bounding_box_scale0.699999988079071Decimal numberScaling temporarily applied to the entity's AABB bounds when jumping.Breeze: 0.7
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters itemConditions that need to be met for the behavior to start.Breeze: {"all_of":[{"any_of":[{"test":"in_water","value":true},{"test":"on_ground","value":true}]},{"test":"is_riding","value":false},{"test":"in_lava","value":false}]}
filters (Alternate 1)not setObject
jump_angles[40, 55, 60, 75, 80]Array of numbersThe jump angles in float degrees that are allowed when performing the jump. The order in which the angles are chosen is randomized.Breeze: [40,55,60,75,80]
jump_cooldown_duration0.5Decimal numberThe time in seconds to spend in cooldown before this goal can be used again.Breeze: 0.5
jump_cooldown_when_hurt_duration0.10000000149011612Decimal numberThe time in seconds to spend in cooldown after being hurt before this goal can be used again.Breeze: 0.1
landing_distance_from_target{"max":8,"min":4}Landing Distance From Target itemThe range deciding how close to and how far away from the target the landing position can be when jumping.Breeze: {"min":4,"max":8}
landing_position_spread_degrees90Integer numberThis angle (in degrees) is used for controlling the spread when picking a landing position behind the target.Breeze: 90
last_hurt_duration2Decimal numberIf the entity was hurt within these last seconds, the jump_cooldown_when_hurt_duration will be used instead of jump_cooldown_duration.Breeze: 2
line_of_sight_obstruction_height_ignore4Integer numberIf 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.Breeze: 4
max_jump_velocity1.399999976158142Decimal numberMaximum velocity a jump can be performed at.Breeze: 1.4
prepare_jump_duration0.5Decimal numberThe time in seconds to spend preparing for the jump.Breeze: 0.5
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Breeze: 5
required_vertical_space4Integer numberThe number of blocks above the entity's head that has to be air for this goal to be usable.Breeze: 4
snap_to_surface_block_range10Integer numberThe number of blocks above and below from the jump target position that will be checked to find a surface to land on.Breeze: 10
valid_distance_to_target{"max":20,"min":4}Valid Distance To Target itemTarget needs to be within this range for the jump to happen.Breeze: {"min":4,"max":20}

entity_bounding_box_scale​

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.

landing_position_spread_degrees​

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.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Filters​

Filters Properties​

JSON path: filters

NameDefault ValueTypeDescription
domainnot setObjectThe domain the test should be performed in.
operatornot setObjectThe comparison to apply with 'value'.
subjectnot setObjectThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setObjectThe value being compared with the test.

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: landing_distance_from_target

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Samples​

Breeze​
"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,
55,
60,
75,
80
],
"jump_cooldown_when_hurt_duration": 0.1,
"landing_distance_from_target": {
"min": 4,
"max": 8
},
"last_hurt_duration": 2,
"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,
"max": 20
}
}

minecraft:behavior.jump_to_block​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_jump.to_block.md)

Allows an entity to jump to another random block.

[!Note] In format version 1.26.20, cooldown_range must be specified as a Float Range object (an object with range_min / range_max). Legacy scalar or array forms no longer parse.

Entity Jump To Block Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
cooldown_range{"max":20,"min":10}Cooldown Range itemMinimum and maximum cooldown time-range (positive, in seconds) between each attempted jump.Frog: {"min":5,"max":7}, Goat: [30,60]
forbidden_blocks[]StringBlocks that the mob can't jump to.Frog: [{"name":"minecraft:water"}]
forbidden_blocks (as Keyed set of strings)not setKeyed set of strings
max_velocity1.5Decimal numberThe maximum velocity with which the mob can jump.Frog: 1
minimum_distance2Integer numberThe minimum distance (in blocks) from the mob to a block, in order to consider jumping to it.Frog: 1
minimum_path_length5Integer numberThe minimum length (in blocks) of the mobs path to a block, in order to consider jumping to it.Frog: 2, Goat: 8
preferred_blocks[]StringBlocks that the mob prefers jumping to.Frog: [{"name":"minecraft:waterlily"},{"name":"minecraft:big_dripleaf"}]
preferred_blocks (as Keyed set of strings)not setKeyed set of strings
preferred_blocks_chance1Decimal numberChance (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. Value must be <= 1.Frog: 0.5
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Frog: 10, Goat: 8
scale_factor0.699999988079071Decimal numberThe scalefactor of the bounding box of the mob while it is jumping.Frog: 0.6
search_height10Integer numberThe height (in blocks, in range [1, 15]) of the search box, centered around the mob. Value must be >= 1. Value must be <= 15.Frog: 4, Goat: 10
search_width8Integer numberThe width (in blocks, in range [1, 15]) of the search box, centered around the mob. Value must be >= 1. Value must be <= 15.Frog: 8, Goat: 10

cooldown_range​

Minimum and maximum cooldown time-range (positive, in seconds) between each attempted jump. Check that the limits imposed on the range (minimum, maximum and maximum distance between values) are respected.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_range

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Samples​

Frog​
"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
}
Goat​
"minecraft:behavior.jump_to_block": {
"priority": 8,
"search_width": 10,
"search_height": 10,
"minimum_path_length": 8,
"minimum_distance": 1,
"scale_factor": 0.6,
"cooldown_range": [
30,
60
]
}

minecraft:behavior.knockback_roar​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_knockback_roar.md)

Allows the mob to perform a damaging knockback that affects all nearby entities.

Entity Knockback Roar Behavior Properties​

NameDefault ValueTypeDescription
attack_time0.5Decimal numberThe delay after which the knockback occurs (in seconds).
control_flags[]Control Flags choices
cooldown_time0.10000000149011612Decimal numberTime (in seconds) the mob has to wait before using the goal again.
damage_filters (Damage Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Damage Filters itemThe list of conditions another entity must meet to be a valid target to apply damage to.
damage_filters (Alternate 1)not setObject
duration1Decimal numberThe max duration of the roar (in seconds).
knockback_damage6Integer numberThe damage dealt by the knockback roar.
knockback_filters (Knockback Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Knockback Filters itemThe list of conditions another entity must meet to be a valid target to apply knockback to.
knockback_filters (Alternate 1)not setObject
knockback_height_cap0.4000000059604645Decimal numberThe maximum height for vertical knockback.
knockback_horizontal_strength4Integer numberThe strength of the horizontal knockback.
knockback_range4Integer numberThe radius (in blocks) of the knockback effect.
knockback_vertical_strength4Integer numberThe strength of the vertical knockback.
on_roar_end (Entity ActorDefinitionTrigger){"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Roar End itemEvent that is triggered when the roar ends. Can be an object with event and target properties, or a simple event string.
on_roar_end (as String)not setString
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Damage Filters​

Damage Filters Properties​

JSON path: damage_filters

NameDefault ValueTypeDescription
domainnot setObjectThe domain the test should be performed in.
operatornot setObjectThe comparison to apply with 'value'.
subjectnot setObjectThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setObjectThe value being compared with the test.

Knockback Filters​

Same structure as Damage Filters.

Entity ActorDefinitionTrigger​

Triggers an entity event when specified conditions are met. Events activate component groups that change entity behavior—transforming villagers into zombie villagers, switching mobs to aggressive mode, or triggering growth stages. Combine with filters to create conditional state machines that respond to gameplay.

Entity ActorDefinitionTrigger Properties​

JSON path: on_roar_end

NameDefault ValueTypeDescription
eventString
filters (Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Filters itemFilters allow data objects to specify test criteria which allows their use.
filters (Alternate 1)not setObject
targetselfTarget choices
filters​

Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.

Filters​
Filters Properties​

JSON path: on_roar_end > filters

NameDefault ValueTypeDescription
domainnot setObjectThe domain the test should be performed in.
operatornot setObjectThe comparison to apply with 'value'.
subjectnot setObjectThe subject of this filter test.
testnot setStringThe name of the test to apply.
valuenot setObjectThe value being compared with the test.

Target choices​

ValueTitleDescription
babyBaby
blockBlock
damagerDamager
holderHolder
itemItem
otherOther
parentParent
playerPlayer
selfSelf
targetTarget

Samples​

minecraft:behavior.lay_down​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_lay_down.md)

Allows mobs to lay down at times.

Entity Lay Down Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
interval120Integer numberA random value to determine at what intervals something can occur. This has a 1/interval chance to choose this goal
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
random_stop_interval120Integer numberA random value in which the goal can use to pull out of the behavior. This is a 1/interval chance to stop laying down

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13