Skip to main content

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

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

Enables the mob to admire items that have been configured as admirable.

[!Note] In format version 1.26.20, sound_interval must be specified as a Float Range object (an object with range_min / range_max). Legacy scalar or array forms no longer parse.

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

  • Admire Item (minecraft:admire_item)

Entity Admire Item Behavior Properties​

NameDefault ValueTypeDescription
admire_item_soundStringThe sound event to play when admiring the item
control_flags[]Control Flags choices
on_admire_item_start{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Admire Item Start itemEvent to run when the mob starts admiring an item.
on_admire_item_stop{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}Admire Item Stop itemEvent to run when the mob stops admiring an item.
priority0Integer numberAs priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.
sound_interval (Legacy FloatRange)0Sound Interval itemThe range of time in seconds to randomly wait before playing the sound again. Can be a number, an array [min, max], or an object with range_min and range_max.
sound_interval (as Array of objects)not setArray of Sound Interval items
sound_interval (as Object)not setSound Interval item

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

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: sound_interval

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Sound Interval​

Sound Interval Properties​

JSON path: sound_interval

NameDefault ValueTypeDescription
0not setInteger number
1not setInteger number

Samples​

minecraft:behavior.aquatic_charge_attack​

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

Enables an aquatic mob to dash at its target with knockback; includes overshoot and cooldown settings.

Entity Aquatic Charge Attack Behavior Properties​

NameDefault ValueTypeDescription
attack_reach0.05000000074505806Decimal numberHorizontal reach grown around the mob's AABB to register a hit.
charge_cooldown_time{"max":6,"min":2}Charge Cooldown Time itemRange of time in seconds to wait before starting another charge. Check that the limits imposed on the range (minimum, maximum and maximum distance between values) are respected
charge_overshoot_distance1.5Decimal numberDistance beyond the target the mob aims during a charge.
charge_speed0.05999999865889549Decimal numberAbsolute speed used during the charge attack. Value must be >= 0.05000000074505806.
control_flags[]Control Flags choices
knockback_force2Decimal numberKnockback force applied to the target on hit.
max_charge_distance16Decimal numberMaximum distance at which the mob attempts a charge.
priority0Integer number

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: charge_cooldown_time

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Control Flags choices​

ValueTitleDescription
jumpJump
lookLook
moveMove

Samples​

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