Skip to main content

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​

NameDefault ValueTypeDescriptionExample Values
allow_dig_when_namedfalseBoolean true/falseIf true, this behavior can run when this entity is named. Otherwise not.
control_flags[]Control Flags choices
digs_in_daylightfalseBoolean true/falseIndicates that the actor should start digging when it sees daylight
duration0Decimal numberGoal duration in secondsWarden: 5.5
idle_time0Decimal numberThe 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 itemEvent(s) to run when the goal starts.Warden: {"event":"on_digging_event"}
priority0Integer numberAs 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_disturbancefalseBoolean true/falseIf true, finding new suspicious locations count as disturbances that may delay the start of this goal.Warden: true
vibration_is_disturbancefalseBoolean true/falseIf true, vibrations count as disturbances that may delay the start of this goal.Warden: true

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_start

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_start > 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​

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​

NameDefault ValueTypeDescription
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.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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_zone now only accepts an object with min and max values.

[!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​

NameDefault ValueTypeDescriptionExample Values
active_speed3Decimal numberThe speed this entity moves when this behavior has started or while it's active.
continue_charge_threshold_time0.5Decimal numberIf 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_speed0.6000000238418579Decimal numberThe speed this entity moves while this behavior is not active.
priority0Integer numberAs 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 itemMinimum and maximum distance, from the target, this entity can use this behavior.
turn_speed0.699999988079071Decimal numberThe speed at which this entity turns while using this behavior.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: target_zone

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal 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​

NameDefault ValueTypeDescription
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.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
cooldown_time10Decimal numberTime (in seconds) between each start of the cycle to roar, then breath flame.
flame_time0.5Decimal numberTime (in seconds), after roar, to breath flame.
ground_flame_count4Integer numberNumber of ground flame-breath attacks to use before flight-takeoff.
priority0Integer numberAs 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_time2Decimal numberTime (in seconds) to roar, before breathing flame.
smoke_color#DC00EFString
smoke_radius5Decimal number
smoke_time10Decimal number

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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​

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.Ender Dragon: 3

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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​

NameDefault ValueTypeDescription
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.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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​

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.Ender Dragon: 2

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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_zone now only accepts an object with min and max values.

[!Note] Can only be used on the following type of entity:

  • Ender Dragon (minecraft:ender_dragon)

Entity Dragonstrafeplayer Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
active_speed0.6000000238418579Decimal numberThe speed this entity moves when this behavior has started or while it's active.
control_flags[]Control Flags choices
fireball_range64Decimal numberMaximum distance of this entity's fireball attack while strafing. Value must be > 0.
flight_speed0.6000000238418579Decimal numberThe speed this entity moves while this behavior is not active.
priority0Integer numberAs 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_probability0.125Decimal numberPercent 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_time0.25Decimal numberTime (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 itemMinimum and maximum distance, from the target, this entity can use this behavior.
turn_speed0.699999988079071Decimal numberThe speed at which this entity turns while using this behavior.
view_angle10Decimal numberThe 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​

ValueTitleDescription
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: target_zone

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal 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​

NameDefault ValueTypeDescription
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.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

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​

NameDefault ValueTypeDescription
control_flags[]Control Flags choices
cooldown_seconds5Decimal numberTime (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 itemConditions that need to be met for the behavior to start.
filters (Alternate 1)not setObject
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

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.

Samples​

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