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
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| goal_radius | 0.5 | Decimal number | Distance 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 items | Event to run on block reached. |
| on_stay_completed | [] | Array of Stay Completed items | Event to run on completing a stay of stay_duration at the block. |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. |
| search_height | 1 | Integer number | The height in blocks that the mob will look for the block. |
| search_range | 0 | Integer number | The distance in blocks that the mob will look for the block. |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal |
| start_chance | 1 | Decimal number | Chance to start the behavior (applied after each random tick_interval). |
| stay_duration | 0 | Decimal number | Number 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 item | Conditions that need to be met for a block to be a valid target. |
| target_block_filters (Alternate 1) | not set | Object | |
| target_blocks | [] | String | Block types to move to. |
| target_blocks (as Keyed set of strings) | not set | Keyed set of strings | |
| target_offset | [0, 0, 0] | Array of numbers | Offset to add to the selected target position. |
| target_offset (Target Offset) | not set | Target Offset (Target Offset) item | |
| target_selection_method | nearest | Target Selection Method choices | Kind of block to find fitting the specification. Valid values are "random" and "nearest". |
| tick_interval | 20 | Integer number | Average interval in ticks to try to run this behavior. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| event | String | ||
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Filters allow data objects to specify test criteria which allows their use. |
| filters (Alternate 1) | not set | Object | |
| target | self | Target 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| domain | not set | Object | The domain the test should be performed in. |
| operator | not set | Object | The comparison to apply with 'value'. |
| subject | not set | Object | The subject of this filter test. |
| test | not set | String | The name of the test to apply. |
| value | not set | Object | The value being compared with the test. |
Target choices
| Value | Title | Description |
|---|---|---|
| baby | Baby | |
| block | Block | |
| damager | Damager | |
| holder | Holder | |
| item | Item | |
| other | Other | |
| parent | Parent | |
| player | Player | |
| self | Self | |
| target | Target |
Target Block Filters
Target Block Filters Properties
JSON path: target_block_filters
| Name | Default Value | Type | Description |
|---|---|---|---|
| domain | not set | Object | The domain the test should be performed in. |
| operator | not set | Object | The comparison to apply with 'value'. |
| subject | not set | Object | The subject of this filter test. |
| test | not set | String | The name of the test to apply. |
| value | not set | Object | The value being compared with the test. |
Target Offset (Target Offset)
Target Offset Properties
JSON path: target_offset
| Name | Default Value | Type | Description |
|---|---|---|---|
| x | 0 | Decimal number | |
| y | 0 | Decimal number | |
| z | 0 | Decimal number |
Target Selection Method choices
| Value | Title | Description |
|---|---|---|
| nearest | Nearest | |
| random | Random |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| goal_radius | 0.5 | Decimal number | Distance 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 |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Frog: 6 |
| search_count | 10 | Integer number | 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. | Frog: 80 |
| search_height | 1 | Integer number | Height in blocks the mob will look for land to move towards Value must be > 0. | Frog: 8 |
| search_range | 0 | Integer number | The distance in blocks it will look for land to move towards Value must be > 0. | Frog: 30 |
| speed_multiplier | 1 | Decimal number | Movement 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
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| goal_radius | 0.5 | Decimal number | Distance 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. |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. |
| search_count | 10 | Integer number | 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. |
| search_height | 1 | Integer number | Height in blocks the mob will look for lava to move towards Value must be > 0. |
| search_range | 0 | Integer number | The distance in blocks it will look for lava to move towards Value must be > 0. |
| speed_multiplier | 1 | Decimal number | Movement 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
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| goal_radius | 0.5 | Decimal number | Distance 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_type | any | Material Type choices | The material type of the liquid block to find. Valid values are "Any", "Water", and "Lava". | Strider: "Lava" |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Strider: 7 |
| search_count | 10 | Integer number | 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. | Strider: 30 |
| search_height | 1 | Integer number | Height in blocks the mob will look for the liquid block to move towards Value must be > 0. | Strider: 10 |
| search_range | 0 | Integer number | The distance in blocks it will look for the liquid block to move towards Value must be > 0. | Strider: 16 |
| speed_multiplier | 1 | Decimal number | Movement 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
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Material Type choices
| Value | Title | Description |
|---|---|---|
| Any | Any | |
| Lava | Lava | |
| Water | Water |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| poi_type | null | Poi Type choices | Tells the goal what POI type it should be looking for |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this goal. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Poi Type choices
| Value | Title | Description |
|---|---|---|
| bed | Bed | |
| jobsite | Jobsite | |
| meeting_area | Meeting 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
| Name | Default Value | Type | Description |
|---|---|---|---|
| block_distance | 16 | Decimal number | Defines the distance from the mob, in blocks, that the block to move to will be chosen. |
| control_flags | [] | Control Flags choices | |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal |
| within_radius | 0 | Decimal number | Defines the distance in blocks the mob has to be from the block for the movement to be finished. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| cooldown_time | 8 | Decimal number | Time in seconds the mob has to wait before using the goal again |
| goal_radius | 1.5 | Decimal number | Distance 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. |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. |
| search_range | 0 | Integer number | The distance in blocks to search for villages. If <= 0, find the closest village regardless of distance. |
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this goal. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| goal_radius | 0.5 | Decimal number | Distance 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 |
| priority | 0 | Integer number | As 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_count | 10 | Integer number | 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. | |
| search_height | 1 | Integer number | Height in blocks the mob will look for water to move towards Value must be > 0. | Dolphin: 5 |
| search_range | 0 | Integer number | The distance in blocks it will look for water to move towards Value must be > 0. | Dolphin: 15, Frog: 20 |
| speed_multiplier | 1 | Decimal number | Movement 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
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| priority | 0 | Integer number | As 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_multiplier | 1 | Decimal number | This multiplier modifies the entity's speed when moving towards its restriction. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| priority | 0 | Integer number | As 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_multiplier | 1 | Decimal number | This multiplier modifies the entity's speed when moving towards its restriction. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| priority | 0 | Integer number | |
| speed_multiplier | 1 | Decimal number | This multiplier modifies the entity's speed when moving towards its restriction. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
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
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| priority | 0 | Integer number | As 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_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Iron Golem: 0.9 |
| within_radius | 0 | Decimal number | Defines 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 target | Iron Golem: 32 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Iron Golem
"minecraft:behavior.move_towards_target": {
"priority": 2,
"speed_multiplier": 0.9,
"within_radius": 32
}
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |