Entity AI goal reference (12/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.dig
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dig.md)
Allows this entity to dig into the ground before despawning.
Entity Dig Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| allow_dig_when_named | false | Boolean true/false | If true, this behavior can run when this entity is named. Otherwise not. | |
| control_flags | [] | Control Flags choices | ||
| digs_in_daylight | false | Boolean true/false | Indicates that the actor should start digging when it sees daylight | |
| duration | 0 | Decimal number | Goal duration in seconds | Warden: 5.5 |
| idle_time | 0 | Decimal number | The minimum idle time in seconds between the last detected disturbance to the start of digging. | Warden: 60 |
| on_start | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Start item | Event(s) to run when the goal starts. | Warden: {"event":"on_digging_event"} |
| 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. | Warden: 1 |
| suspicion_is_disturbance | false | Boolean true/false | If true, finding new suspicious locations count as disturbances that may delay the start of this goal. | Warden: true |
| vibration_is_disturbance | false | Boolean true/false | If true, vibrations count as disturbances that may delay the start of this goal. | Warden: true |
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_start
| 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_start > 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 |
Samples
Warden
"minecraft:behavior.dig": {
"duration": 5.5,
"idle_time": 60,
"vibration_is_disturbance": true,
"suspicion_is_disturbance": true,
"on_start": {
"event": "on_digging_event"
},
"priority": 1
}
minecraft:behavior.door_interact
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_door_interact.md)
Allows the mob to open and close doors.
[!Note] Not currently used by any entities within Minecraft: Bedrock Edition.
Entity Door Interact Behavior Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| 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. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
minecraft:behavior.dragonchargeplayer
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonchargeplayer.md)
Allows this entity to attack a player by charging at them. The player is chosen by the "minecraft:behavior.dragonscanning".
[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON.
target_zonenow only accepts an object withminandmaxvalues.
[!Note] Requires the following component in order to work properly:
- Dragonscanning Behavior (minecraft:behavior.dragonscanning)
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonchargeplayer Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| active_speed | 3 | Decimal number | The speed this entity moves when this behavior has started or while it's active. | |
| continue_charge_threshold_time | 0.5 | Decimal number | If the dragon is outside the "target_zone" for longer than "continue_charge_threshold_time" seconds, the charge is canceled. Value must be > 0. | |
| control_flags | [] | Control Flags choices | ||
| flight_speed | 0.6000000238418579 | Decimal number | The speed this entity moves while this behavior is not active. | |
| 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. | Ender Dragon: 1 |
| target_zone | {"max":150,"min":10} | Target Zone item | Minimum and maximum distance, from the target, this entity can use this behavior. | |
| turn_speed | 0.699999988079071 | Decimal number | The speed at which this entity turns while using this behavior. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Legacy FloatRange
Legacy FloatRange Properties
JSON path: target_zone
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |
Samples
Ender Dragon
"minecraft:behavior.dragonchargeplayer": {
"priority": 1
}
minecraft:behavior.dragondeath
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragondeath.md)
Allows the dragon to go out with glory. This controls the Ender Dragon's death animation.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragondeath Behavior Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| 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. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragondeath": {
"priority": 0
}
minecraft:behavior.dragonflaming
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonflaming.md)
Allows this entity to use a flame-breath attack.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonflaming Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| control_flags | [] | Control Flags choices | ||
| cooldown_time | 10 | Decimal number | Time (in seconds) between each start of the cycle to roar, then breath flame. | |
| flame_time | 0.5 | Decimal number | Time (in seconds), after roar, to breath flame. | |
| ground_flame_count | 4 | Integer number | Number of ground flame-breath attacks to use before flight-takeoff. | |
| 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. | Ender Dragon: 1 |
| roar_time | 2 | Decimal number | Time (in seconds) to roar, before breathing flame. | |
| smoke_color | #DC00EF | String | ||
| smoke_radius | 5 | Decimal number | ||
| smoke_time | 10 | Decimal number |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragonflaming": {
"priority": 1
}
minecraft:behavior.dragonholdingpattern
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonholdingpattern.md)
Allows the Dragon to fly around in a circle around the center podium.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonholdingpattern 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. | Ender Dragon: 3 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragonholdingpattern": {
"priority": 3
}
minecraft:behavior.dragonlanding
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonlanding.md)
Allows the Dragon to stop flying and transition into perching mode.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonlanding Behavior Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| 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. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragonlanding": {
"priority": 0
}
minecraft:behavior.dragonscanning
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonscanning.md)
Allows the dragon to look around for a player to attack while in perch mode.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonscanning 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. | Ender Dragon: 2 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragonscanning": {
"priority": 2
}
minecraft:behavior.dragonstrafeplayer
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragonstrafeplayer.md)
Allows this entity to fly around looking for a player to shoot fireballs at.
[!Note] In 1.26.0 the schema is stricter and rejects invalid JSON.
target_zonenow only accepts an object withminandmaxvalues.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragonstrafeplayer Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| active_speed | 0.6000000238418579 | Decimal number | The speed this entity moves when this behavior has started or while it's active. | |
| control_flags | [] | Control Flags choices | ||
| fireball_range | 64 | Decimal number | Maximum distance of this entity's fireball attack while strafing. Value must be > 0. | |
| flight_speed | 0.6000000238418579 | Decimal number | The speed this entity moves while this behavior is not active. | |
| 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. | Ender Dragon: 2 |
| switch_direction_probability | 0.125 | Decimal number | Percent chance to to switch this entity's strafe direction between clockwise and counterclockwise. Switch direction chance occurs each time a new target is chosen (1.0 = 100%). Value must be <= 1. | |
| target_in_range_and_in_view_time | 0.25 | Decimal number | Time (in seconds) the target must be in fireball range, and in view [ie, no solid terrain in-between the target and this entity], before a fireball can be shot. Value must be > 0. | |
| target_zone | {"max":150,"min":10} | Target Zone item | Minimum and maximum distance, from the target, this entity can use this behavior. | |
| turn_speed | 0.699999988079071 | Decimal number | The speed at which this entity turns while using this behavior. | |
| view_angle | 10 | Decimal number | The target must be within "view_angle" degrees of the dragon's current rotation before a fireball can be shot. Value must be > 0. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Legacy FloatRange
Legacy FloatRange Properties
JSON path: target_zone
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |
Samples
Ender Dragon
"minecraft:behavior.dragonstrafeplayer": {
"priority": 2
}
minecraft:behavior.dragontakeoff
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_dragontakeoff.md)
Allows the dragon to leave perch mode and go back to flying around.
[!Note] Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Entity Dragontakeoff Behavior Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| 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. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Ender Dragon
"minecraft:behavior.dragontakeoff": {
"priority": 0
}
minecraft:behavior.drink_milk
(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityGoals/minecraftBehavior_drink_milk.md)
Allows the mob to drink milk based on specified environment conditions.
Entity Drink Milk Behavior Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| control_flags | [] | Control Flags choices | |
| cooldown_seconds | 5 | Decimal number | Time (in seconds) that the goal is on cooldown before it can be used again. |
| filters (Filters) | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Filters item | Conditions that need to be met for the behavior to start. |
| filters (Alternate 1) | not set | Object | |
| 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. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Filters
Filters Properties
JSON path: 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. |
Samples
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |