Skip to main content

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

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

Enables a mob to use kinetic weaponry by intermittently charging at its target and repositioning afterward.

[!Note] Lets a mob attack with an item carrying the minecraft:kinetic_weapon component by charging at the target, then repositioning between strikes.

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

Entity Use Kinetic Weapon Behavior Properties​

NameDefault ValueTypeDescription
approach_distance8Decimal numberThe distance to the target within which the mob begins using its kinetic weapon.
attack_oncefalseBoolean true/falseAllows the mob to perform this melee attack behavior only once during its lifetime.
attack_typesStringDefines the entity types this entity will attack.
can_spread_on_firefalseBoolean true/falseAllows the mob, if on fire and empty handed, to ignite its target upon a successful attack.
control_flags[]Control Flags choices
cooldown_distance{"max":8,"min":8}Cooldown Distance itemThe distance the mob retreats to after all of the item's "minecraft:kinetic_weapon" component's "max_duration" values have elapsed.
cooldown_speed_multiplier1Decimal numberMultiplier applied to the mob's movement speed while on cooldown.
cooldown_time1Decimal numberCooldown time, in seconds, between consecutive attacks.
hijack_mount_navigationfalseBoolean true/falseAllows the mob to override its mount's navigation behavior with the logic defined by this goal.
inner_boundary_time_increase0.25Decimal numberTime, in seconds, added to the attack path recalculation interval when the target is beyond "path_inner_boundary".
max_path_time0.550000011920929Decimal numberMaximum base time, in seconds, before recalculating a new attack path to the target (before increases are applied).
melee_fov90Decimal numberField of view, in degrees, used by the hard-coded sensing component to detect a valid attack target.
min_path_time0.20000000298023224Decimal numberMinimum base time, in seconds, before recalculating a new attack path to the target (before increases are applied).
on_attack{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Attack itemDefines the event to trigger when this entity successfully attacks.
on_kill{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Kill itemDefines the event to trigger when this entity kills the target.
outer_boundary_time_increase0.5Decimal numberTime, in seconds, added to the attack path recalculation interval when the target is beyond "path_outer_boundary".
path_fail_time_increase0.75Decimal numberTime, in seconds, added to the attack path recalculation interval when the mob cannot move along the current path.
path_inner_boundary16Decimal numberDistance at which to increase attack path recalculation by "inner_boundary_time_increase".
path_outer_boundary32Decimal numberDistance at which to increase attack path recalculation by "outer_boundary_time_increase".
priority0Integer number
random_stop_interval0Integer numberDefines a 1-in-N chance for the mob to stop its current attack, where N equals "random_stop_interval".
reposition_distance{"max":2,"min":2}Reposition Distance itemThe distance the mob retreats to once the target is closer than the midpoint of the item's "minecraft:kinetic_weapon" component's minimum and maximum "reach".
reposition_speed_multiplier1Decimal numberMultiplier applied to the mob's movement speed while repositioning.
require_complete_pathfalseBoolean true/falseSpecifies whether a full navigation path from the mob to the target is required.
speed_multiplier1Decimal numberMultiplier applied to the mob's movement speed when moving toward its target.
track_targetfalseBoolean true/falseAllows the mob to track its target even if it lacks a hard-coded sensing component.
weapon_min_speed_multiplier1Decimal numberMultiplier applied to each "min_speed" and "min_relative_speed" condition in the item's "minecraft:kinetic_weapon" component.
weapon_reach_multiplier1Decimal numberMultiplier applied to the item's "minecraft:kinetic_weapon" component's "reach".
x_max_rotation30Decimal numberMaximum rotation, in degrees, on the X-axis while the mob is trying to look at its target.
y_max_head_rotation30Decimal numberMaximum rotation, in degrees, on the Y-axis while the mob is trying to look at its target.

cooldown_distance​

The distance the mob retreats to after all of the item's "minecraft:kinetic_weapon" component's "max_duration" values have elapsed. After reaching this position and once "cooldown" has elapsed, the mob will approach again. This value is added to the reach midpoint.

hijack_mount_navigation​

Allows the mob to override its mount's navigation behavior with the logic defined by this goal. Requires the mount to be running the "minecraft:behavior.mount_pathing" goal, which default behavior will be ignored.

reposition_distance​

The distance the mob retreats to once the target is closer than the midpoint of the item's "minecraft:kinetic_weapon" component's minimum and maximum "reach". After reaching this position, the mob will charge again. This value is added to the reach midpoint.

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: cooldown_distance

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

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_attack

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_attack > 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.vex_copy_owner_target​

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

Allows the mob to target the same entity its owner is targeting.

[!Note] No longer used for the vex entity.

Vex Copy Owner Target Behavior Properties​

NameDefault ValueTypeDescription
entity_typesnot setArray of Entity Types itemsList of entities this mob can copy the owner from
prioritynot setInteger numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Entity Types​

List of entities this mob can copy the owner from.

Entity Types Properties​

JSON path: entity_types

NameDefault ValueTypeDescription
cooldown0Decimal numberThe amount of time in seconds that the mob has to wait before selecting a target of the same type again
filtersnot setMinecraft filterConditions that make this entry in the list valid
max_dist16Decimal numberMaximum distance this mob can be away to be a valid choice
must_seefalseBoolean true/falseIf true, the mob has to be visible to be a valid choice
must_see_forget_duration3Decimal numberDetermines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more
reevaluate_descriptionfalseBoolean true/falseIf true, the mob will stop being targeted if it stops meeting any conditions.
sprint_speed_multiplier1Decimal numberMultiplier for the running speed. A value of 1.0 means the speed is unchanged
walk_speed_multiplier1Decimal numberMultiplier for the walking speed. A value of 1.0 means the speed is unchanged

minecraft:behavior.vex_random_move​

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

Allows the mob to move around randomly like the Vex.

[!Note] No longer used for the vex entity. Instead, minecraft:navigation.walk and minecraft:behavior.float allow the vex entity to navigate.

Vex Random Move Behavior Properties​

NameDefault ValueTypeDescription
prioritynot setInteger numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

minecraft:behavior.wither_random_attack_pos_goal​

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

Allows the wither to launch random attacks.

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

  • Wither (minecraft:wither)

Entity Wither Random Attack Pos Goal 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.Wither: 3

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

Wither​
"minecraft:behavior.wither_random_attack_pos_goal": {
"priority": 3
}

minecraft:behavior.wither_target_highest_damage​

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

Allows the wither to focus its attacks on whichever mob has dealt the most damage to it.

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

  • Wither (minecraft:wither)

Entity Wither Target Highest Damage Behavior Properties​

NameDefault ValueTypeDescriptionExample Values
control_flags[]Control Flags choices
entity_types[]Array of Entity Types itemsList of entity types the wither takes into account to find who dealt the most damage to it
entity_types (Entity Types)not setEntity Types (Entity Types) item
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.Wither: 1

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Entity Types​

List of entity types the wither takes into account to find who dealt the most damage to it.

Entity Types Properties​

JSON path: entity_types

NameDefault ValueTypeDescription
cooldown0Decimal numberThe amount of time in seconds that the mob has to wait before selecting a target of the same type again
filtersnot setMinecraft filterConditions that make this entry in the list valid
max_dist16Decimal numberMaximum distance this mob can be away to be a valid choice
must_seefalseBoolean true/falseIf true, the mob has to be visible to be a valid choice
must_see_forget_duration3Decimal numberDetermines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more
reevaluate_descriptionfalseBoolean true/falseIf true, the mob will stop being targeted if it stops meeting any conditions.
sprint_speed_multiplier1Decimal numberMultiplier for the running speed. A value of 1.0 means the speed is unchanged
walk_speed_multiplier1Decimal numberMultiplier for the walking speed. A value of 1.0 means the speed is unchanged

Entity Types (Entity Types)​

Entity Types Properties​

JSON path: entity_types

NameDefault ValueTypeDescription
check_if_outnumberedfalseBoolean true/falseIf true, the mob will check if its outnumbered
cooldown0Integer numberThe amount of time in seconds that the mob has to wait before selecting a target of the same type 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 make this entry in the list valid
filters (Alternate 1)not setObject
max_dist16Decimal numberMaximum distance this mob can be away to be a valid choice
max_flee10Decimal numberMaximum distance this mob can be from the target to stop fleeing
max_height-1Decimal numberMaximum height this mob can be away to be a valid choice
must_seenot setBoolean true/falseIf true, the mob has to be visible to be a valid choice
must_see_forget_duration3Integer numberDetermines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more
priority0Integer numberPriority for this mob type
reevaluate_descriptionfalseBoolean true/falseIf true, the mob will stop being targeted if it stops meeting any conditions.
sprint_speed_multiplier1Decimal numberMultiplier for the sprinting speed. A value of 1.0 means the speed is unchanged
walk_speed_multiplier1Decimal numberMultiplier for the walking speed. A value of 1.0 means the speed is unchanged
Filters​
Filters Properties​

JSON path: entity_types > 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​

Wither​
"minecraft:behavior.wither_target_highest_damage": {
"priority": 1
}

minecraft:behavior.work​

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

Allows the NPC to use the POI.

Entity Work Behavior Properties​

NameDefault ValueTypeDescription
active_time0Integer numberThe amount of ticks the NPC will stay in their the work location
can_work_in_rainfalseBoolean true/falseIf true, this entity can work when their jobsite POI is being rained on.
control_flags[]Control Flags choices
goal_cooldown0Integer numberThe amount of ticks the goal will be on cooldown before it can be used again
on_arrival{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Arrival itemEvent to run when the mob reaches their jobsite.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
sound_delay_max0Integer numberThe max interval in which a sound will play.
sound_delay_min0Integer numberThe min interval in which a sound will play.
speed_multiplier0.5Decimal numberMovement speed multiplier of the mob when using this AI Goal Value must be > 0.
work_in_rain_tolerance-1Integer numberIf "can_work_in_rain" is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal

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_arrival

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_arrival > 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.work_composter​

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

Allows the NPC to use the composter POI to convert excess seeds into bone meal.

Entity Work Composter Behavior Properties​

NameDefault ValueTypeDescription
active_time0Integer numberThe amount of ticks the NPC will stay in their the work location
block_interaction_max1Integer numberThe maximum number of times the mob will interact with the composter.
can_empty_compostertrueBoolean true/falseDetermines whether the mob can empty a full composter.
can_fill_compostertrueBoolean true/falseDetermines whether the mob can add items to a composter given that it is not full.
can_work_in_rainfalseBoolean true/falseIf true, this entity can work when their jobsite POI is being rained on.
control_flags[]Control Flags choices
goal_cooldown0Integer numberThe amount of ticks the goal will be on cooldown before it can be used again
items_per_use_max20Integer numberThe maximum number of items which can be added to the composter per block interaction.
min_item_count10Integer numberLimits the amount of each compostable item the mob can use. Any amount held over this number will be composted if possible
on_arrival{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Arrival itemEvent to run when the mob reaches their jobsite.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier0.5Decimal numberMovement speed multiplier of the mob when using this AI Goal Value must be > 0.
use_block_max200Integer numberThe maximum interval in which the mob will interact with the composter.
use_block_min100Integer numberThe minimum interval in which the mob will interact with the composter.
work_in_rain_tolerance-1Integer numberIf "can_work_in_rain" is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal

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_arrival

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

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