Skip to main content

Entity AI goal reference (24/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.move_to_block​

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

Allows mob to move towards a block.

Entity Move To Block Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
goal_radius0.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot.
on_reach[]Array of Reach itemsEvent to run on block reached.
on_stay_completed[]Array of Stay Completed itemsEvent to run on completing a stay of stay_duration at the block.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
search_height1Integer numberThe height in blocks that the mob will look for the block.
search_range0Integer numberThe distance in blocks that the mob will look for the block.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this AI Goal
start_chance1Decimal numberChance to start the behavior (applied after each random tick_interval).
stay_duration0Decimal numberNumber of ticks needed to complete a stay at the block.
target_block_filters (Target Block Filters){"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}Target Block Filters itemConditions that need to be met for a block to be a valid target.
target_block_filters (Alternate 1)not setObject
target_blocks[]StringBlock types to move to.
target_blocks (as Keyed set of strings)not setKeyed set of strings
target_offset[0, 0, 0]Array of numbersOffset to add to the selected target position.
target_offset (Target Offset)not setTarget Offset (Target Offset) item
target_selection_methodnearestTarget Selection Method choicesKind of block to find fitting the specification. Valid values are "random" and "nearest".
tick_interval20Integer numberAverage interval in ticks to try to run this behavior.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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_reach

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_reach > 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

Target Block Filters​

Target Block Filters Properties​

JSON path: target_block_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 Offset (Target Offset)​

Target Offset Properties​

JSON path: target_offset

NameDefault ValueTypeDescription
x0Decimal number
y0Decimal number
z0Decimal number

Target Selection Method choices​

ValueTitleDescription
nearestNearest
randomRandom

Samples​

minecraft:behavior.move_to_land​

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

Allows the mob to move back onto land when in water.

Entity Move To Land Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
goal_radius0.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. Value must be > 0.Frog: 2
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Frog: 6
search_count10Integer numberThe number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to.Frog: 80
search_height1Integer numberHeight in blocks the mob will look for land to move towards Value must be > 0.Frog: 8
search_range0Integer numberThe distance in blocks it will look for land to move towards Value must be > 0.Frog: 30
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

search_count​

The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Frog​
"minecraft:behavior.move_to_land": {
"goal_radius": 2,
"priority": 6,
"search_count": 80,
"search_height": 8,
"search_range": 30
}

minecraft:behavior.move_to_lava​

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

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Allows the mob to move back into lava when on land. This behavior has been replaced by minecraft:behavior.move_to_liquid.

[!Note] This behavior was introduced in 1.16 but replaced by minecraft:behavior.move_to_liquid in 1.16.100 which supports any liquid type.

[!Note] This item no longer works after format versions of at least 1.16.100.

Entity Move To Lava Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
goal_radius0.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. Value must be > 0.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
search_count10Integer numberThe number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to.
search_height1Integer numberHeight in blocks the mob will look for lava to move towards Value must be > 0.
search_range0Integer numberThe distance in blocks it will look for lava to move towards Value must be > 0.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

search_count​

The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

minecraft:behavior.move_to_liquid​

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

Allows the mob to move into a liquid when on land.

Entity Move To Liquid Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
goal_radius0.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. Value must be > 0.Strider: 0.9
material_typeanyMaterial Type choicesThe material type of the liquid block to find. Valid values are "Any", "Water", and "Lava".Strider: "Lava"
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Strider: 7
search_count10Integer numberThe number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to.Strider: 30
search_height1Integer numberHeight in blocks the mob will look for the liquid block to move towards Value must be > 0.Strider: 10
search_range0Integer numberThe distance in blocks it will look for the liquid block to move towards Value must be > 0.Strider: 16
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

search_count​

The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Material Type choices​

ValueTitleDescription
AnyAny
LavaLava
WaterWater

Samples​

Strider​
"minecraft:behavior.move_to_liquid": {
"priority": 7,
"search_range": 16,
"search_height": 10,
"goal_radius": 0.9,
"material_type": "Lava",
"search_count": 30
}

minecraft:behavior.move_to_poi​

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

Allows the mob to move to a POI if able to.

Entity Move To Poi Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
poi_typenullPoi Type choicesTells the goal what POI type it should be looking for
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Poi Type choices​

ValueTitleDescription
bedBed
jobsiteJobsite
meeting_areaMeeting area

minecraft:behavior.move_to_random_block​

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

Allows mob to move towards a random block.

Entity Move To Random Block Behavior Properties​

NameDefault ValueTypeDescription
block_distance16Decimal numberDefines the distance from the mob, in blocks, that the block to move to will be chosen.
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this AI Goal
within_radius0Decimal numberDefines the distance in blocks the mob has to be from the block for the movement to be finished.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

minecraft:behavior.move_to_village​

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

Allows the mob to move into a random location within a village.

Entity Move To Village Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
cooldown_time8Decimal numberTime in seconds the mob has to wait before using the goal again
goal_radius1.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
search_range0Integer numberThe distance in blocks to search for villages. If <= 0, find the closest village regardless of distance.
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

minecraft:behavior.move_to_water​

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

Allows the mob to move back into water when on land.

[!Note] This behavior is used by aquatic and semi-aquatic mobs like axolotl, dolphin, and pregnant frogs. The entity will search for and move toward water blocks when on land.

Entity Move To Water Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
goal_radius0.5Decimal numberDistance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. Value must be > 0.Frog: 1.5
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Dolphin: 1, Frog: 3
search_count10Integer numberThe number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to.
search_height1Integer numberHeight in blocks the mob will look for water to move towards Value must be > 0.Dolphin: 5
search_range0Integer numberThe distance in blocks it will look for water to move towards Value must be > 0.Dolphin: 15, Frog: 20
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this goal.

search_count​

The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Dolphin​
"minecraft:behavior.move_to_water": {
"priority": 1,
"search_range": 15,
"search_height": 5
}
Frog​
"minecraft:behavior.move_to_water": {
"goal_radius": 1.5,
"priority": 3,
"search_height": 5,
"search_range": 20
}

minecraft:behavior.move_towards_dwelling_restriction​

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

Allows entities with the "minecraft:dweller" component to move toward their village area that the entity should be restricted to.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON for this behavior.

[!Note] Requires the following component in order to work properly:

  • Dweller (minecraft:dweller)

Entity Move Towards Dwelling Restriction Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Iron Golem: 4
speed_multiplier1Decimal numberThis multiplier modifies the entity's speed when moving towards its restriction.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Iron Golem​
"minecraft:behavior.move_towards_dwelling_restriction": {
"priority": 4
}

minecraft:behavior.move_towards_home_restriction​

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

Allows entities with a minecraft:home component to move towards their home position. If restriction_radius is set, entities will be able to run this behavior only if outside of it.

[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON for this behavior.

[!Note] Requires the following component in order to work properly:

  • Home (minecraft:home)

Entity Move Towards Home Restriction Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Elder Guardian: 5
speed_multiplier1Decimal numberThis multiplier modifies the entity's speed when moving towards its restriction.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Elder Guardian​
"minecraft:behavior.move_towards_home_restriction": {
"priority": 5
}

minecraft:behavior.move_towards_restriction​

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

AI goal that drives entities back toward their designated home area when they've wandered too far. Works with components like minecraft:home to define the restriction zone. Used for village-bound mobs, territorial creatures, or any entity that should patrol or return to a specific location.

Entity Move Towards Restriction Behavior Properties​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
priority0Integer number
speed_multiplier1Decimal numberThis multiplier modifies the entity's speed when moving towards its restriction.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

minecraft:behavior.move_towards_target​

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

Allows mob to move towards its current target.

[!Note] Requires a target in order to work properly. Entities can generate targets via one of the following behaviors:

  • Nearest Attackable Target Behavior (minecraft:behavior.nearest_attackable_target)
  • Hurt By Target Behavior (minecraft:behavior.hurt_by_target)

Entity Move Towards Target Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Iron Golem: 2
speed_multiplier1Decimal numberMovement speed multiplier of the mob when using this AI GoalIron Golem: 0.9
within_radius0Decimal numberDefines the radius in blocks that the mob tries to be from the target. A value of 0 means it tries to occupy the same block as the targetIron Golem: 32

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Iron Golem​
"minecraft:behavior.move_towards_target": {
"priority": 2,
"speed_multiplier": 0.9,
"within_radius": 32
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13