Skip to main content

Entity component reference (10/23)

This page carries the component 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:is_dyeable​

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

Allows dyes to be used on this entity to change its color.

Is Dyeable Properties​

NameDefault ValueTypeDescriptionExample Values
interact_textnot setStringThe text that will display when interacting with this entity with a dye when playing with Touch-screen controls.Sheep: "action.interact.dye"

Samples​

Sheep​
"minecraft:is_dyeable": {
"interact_text": "action.interact.dye"
}

minecraft:is_hidden_when_invisible​

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

The entity can hide from hostile mobs while invisible.

Samples​

Allay​
"minecraft:is_hidden_when_invisible": {}

minecraft:is_ignited​

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

Sets that this entity is currently on fire.

Samples​

Tnt Minecart​

At /minecraft:entity/component_groups/minecraft:instant_explode_tnt/minecraft:is_ignited/:

"minecraft:is_ignited": {}

minecraft:is_illager_captain​

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

Sets that this entity is an Illager Captain.

Samples​

minecraft:is_pregnant​

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

Sets that this entity is currently pregnant.

Samples​

Sniffer​
"minecraft:is_pregnant": {}

minecraft:is_saddled​

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

Sets that this entity is currently saddled.

Samples​

Pig​
"minecraft:is_saddled": {}

minecraft:is_shaking​

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

Sets that this entity is currently shaking.

Samples​

Drowned​

At /minecraft:entity/component_groups/minecraft:convert_to_zombie/minecraft:is_shaking/:

"minecraft:is_shaking": {}

minecraft:is_sheared​

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

Sets that this entity is currently sheared.

Samples​

Bogged​
"minecraft:is_sheared": {}

minecraft:is_stackable​

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

Allows instances of this entity to have vertical and horizontal collisions with each other. For a collision to occur, both instances must have a "minecraft:collision_box" component. Stackable behavior is closely related to collidable behavior. While the "minecraft:is_stackable" component describes how an entity interacts with others of its own kind, the "minecraft:is_collidable" component governs how other mobs interact with the component's owner.

Is Stackable Properties​

NameDefault ValueTypeDescription
valuetrueBoolean true/falseWhether this entity is stackable.

Samples​

Boat​
"minecraft:is_stackable": {}

minecraft:is_stunned​

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

Sets that this entity is currently stunned.

Samples​

minecraft:is_tamed​

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

Sets that this entity is currently tamed.

Samples​

Llama​
"minecraft:is_tamed": {}

minecraft:item_controllable​

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

Defines what items can be used to control this entity while ridden.

Item Controllable Properties​

NameDefault ValueTypeDescriptionExample Values
control_itemsnot setArray of stringsList of items that can be used to control this entity while ridden. Can be a single string or an array of strings.Pig: "carrotOnAStick", Strider: "warped_fungus_on_a_stick"
control_items (as String)not setString

Samples​

Pig​
"minecraft:item_controllable": {
"control_items": "carrotOnAStick"
}
Strider​
"minecraft:item_controllable": {
"control_items": "warped_fungus_on_a_stick"
}

minecraft:item_hopper​

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

Determines that this entity is an item hopper.

Samples​

Hopper Minecart​
"minecraft:item_hopper": {}

minecraft:jump.dynamic​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_jump.dynamic.md)

Defines a dynamic type jump control that will change jump properties based on the speed modifier of the mob.Requires minecraft:movement.skip to be used.

Entity Dynamic Jump Properties​

NameDefault ValueTypeDescription
fast_skip_data{"animation_duration":1,"distance_scale":1,"height":0.10000000149011612,"jump_delay":30}Fast Skip Data itemJump data used while traveling quickly with skip movement. Object with the same shape as regular_skip_data. This item requires a format version of at least 1.26.0.
regular_skip_data{"animation_duration":1,"distance_scale":1,"height":0.10000000149011612,"jump_delay":30}Regular Skip Data itemJump data used during normal skip movement.

regular_skip_data​

Jump data used during normal skip movement. Object with optional distance_scale (horizontal velocity multiplier), height (vertical force), jump_delay (ticks between jumps), and animation_duration (jump animation length). This item requires a format version of at least 1.26.0.

Entity JumpDataDefinition​

Entity JumpDataDefinition Properties​

JSON path: fast_skip_data

NameDefault ValueTypeDescription
animation_duration1Integer numberDuration of the jump animation.
distance_scale1Decimal numberThe multiplier applied to horizontal velocity when jumping.
height0.10000000149011612Decimal numberThe force applied vertically when jumping.
jump_delay30Integer numberAmount of ticks between sequential jumps.

Samples​

minecraft:jump.static​

(Source: ms-learn, creator/Reference/Content/EntityReference/Examples/EntityComponents/minecraftComponent_jump.static.md)

Gives the entity the ability to jump.

Entity Static Jump Properties​

NameDefault ValueTypeDescription
jump_power0.41999998688697815Decimal numberThe initial vertical velocity for the jump.

Samples​

Allay​
"minecraft:jump.static": {}

minecraft:knockback_resistance​

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

Determines an entity's resistance to knockback from melee attacks. A value of 0.0 means no resistance, while 1.0 provides full immunity to knockback (like iron golems).

[!Note] In format version 1.26.20, value now accepts negative numbers down to a minimum of -2. Negative values amplify knockback applied to the entity instead of diminishing it.

Alternate Simple Representations​

This item can also be represented as a Decimal number.

Knockback Resistance Properties​

NameDefault ValueTypeDescriptionExample Values
maxnot setDecimal numberMaximum potential knockback resistance for this entity.Ender Dragon: 100
valuenot setDecimal numberThe amount of knockback resistance, from 0.0 (none) to 1.0 (full immunity).Armor Stand: 1, Ender Dragon: 100

Samples​

Armor Stand​
"minecraft:knockback_resistance": {
"value": 1
}
Breeze​
"minecraft:knockback_resistance": {
"value": 0
}
Ender Dragon​
"minecraft:knockback_resistance": {
"max": 100,
"value": 100
}

minecraft:lava_movement​

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

Allows a custom movement speed across lava blocks.

Lava Movement Properties​

NameDefault ValueTypeDescriptionExample Values
valuenot setDecimal numberThe speed the mob moves over a lava block.Strider: 0.32

Samples​

Strider​
"minecraft:lava_movement": {
"value": 0.32
}

minecraft:leashable​

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

Describes how this mob can be leashed to other items.

[!Note] In 1.21.90, the can_be_cut root field and the spring_type and rotation_adjustment fields within presets were added.

[!Note] From 1.21.80 onward, supports multiple presets via the presets array. Each preset has its own filter, hard_distance, soft_distance, and max_distance — replacing the flat root fields previously used.

Leashable Properties​

NameDefault ValueTypeDescriptionExample Values
can_be_cuttrueBoolean true/falseIf true, players can cut both incoming and outgoing leashes by using shears on the entity. This item requires a format version of at least 1.21.90.
can_be_stolenfalseBoolean true/falseIf true, players can leash this entity even if it is already leashed to another entity.
hard_distance6Integer numberDistance in blocks at which the leash stiffens, restricting movement.
max_distance0Integer numberDistance in blocks it which the leash breaks.
on_leashnot setObjectEvent to call when this entity is leashed. Can be an object with event and target properties, or a simple event string.
on_leash (as String)not setString
on_unleashnot setObjectEvent to call when this entity is unleashed. Can be an object with event and target properties, or a simple event string.
on_unleash (as String)not setString
on_unleash_interact_onlyfalseBoolean true/falseWhen set to true, "on_unleash" does not trigger when the entity gets unleashed for reasons other than the player directly interacting with it.
presetsnot setArray of Presets itemsDefines how this entity behaves when leashed to another entity. The first preset which "filter" conditions are met will be applied; if none match, a default configuration is used instead.Boat: [{"filter":{"subject":"other","test":"is_family","value":"happy_ghast"},"rotation_adjustment":90,"spring_type":"quad_dampened"},{"hard_distance":4,"rotation_adjustment":90,"soft_distance":2}]
soft_distance4Integer numberDistance in blocks at which the 'spring' effect starts acting to keep this entity close to the entity that leashed it.
unleash_on_removaltrueBoolean true/falseIf true, the entity is unleashed when this component is removed. Defaults to true. This item requires a format version of at least 1.26.30.

Presets​

Defines how this entity behaves when leashed to another entity. The first preset which "filter" conditions are met will be applied; if none match, a default configuration is used instead.

Presets Properties​

JSON path: presets

NameDefault ValueTypeDescription
filternot setMinecraft filterConditions that must be met for this preset to be applied.
hard_distance7Decimal numberDistance (in blocks) over which the entity starts being pulled towards the leash holder with a spring-like force.
max_distance12Decimal numberDistance in blocks it which the leash breaks.
rotation_adjustment0Decimal numberAdjusts the rotation at which the entity reaches equilibrium, when "spring_type" is set to "dampened" or "quad_dampened".
soft_distance4Decimal numberDistance (in blocks) over which the entity starts pathfinding toward the leash holder, if able.
spring_typedampenedStringDefines the type of spring-like force that pulls the entity towards its leash holder: - "bouncy": Simulates a highly elastic spring that never reaches an equilibrium if the leashed entity is suspended mid-air.
hard_distance​

Distance (in blocks) over which the entity starts being pulled towards the leash holder with a spring-like force. Entities can enter and stay in vehicles if the leash is stretched under this distance, but will dismount once it exceeds it.

spring_type​

Defines the type of spring-like force that pulls the entity towards its leash holder: - "bouncy": Simulates a highly elastic spring that never reaches an equilibrium if the leashed entity is suspended mid-air. - "dampened": Simulates a dampened spring attached to the front of the leashed entity's collision. It reaches an equilibrium if the entity is suspended mid-air and aligns with the movement direction. - "quad_dampened": Simulates four dampened springs connected to the center of each side of the entities' collisions. It reaches an equilibrium if the entity is suspended mid-air and gradually aligns with the leash holder over time.

Samples​

Allay​
"minecraft:leashable": {}
Boat​
"minecraft:leashable": {
"presets": [
{
"filter": {
"subject": "other",
"test": "is_family",
"value": "happy_ghast"
},
"rotation_adjustment": 90,
"spring_type": "quad_dampened"
},
{
"hard_distance": 4,
"rotation_adjustment": 90,
"soft_distance": 2
}
]
}
Chicken​
"minecraft:leashable": {
"unleash_on_removal": false
}

minecraft:leashable_to​

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

Allows players to leash entities to this entity, retrieve entities already leashed to it, or free them using shears. For the last interaction to work, the leashed entities must have "can_be_cut" set to true in their "minecraft:leashable" component.

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

Leashable To Properties​

NameDefault ValueTypeDescription
can_retrieve_fromfalseBoolean true/falseAllows players to retrieve entities that are leashed to this entity.
unleash_on_removaltrueBoolean true/falseIf true, all entities leashed to this entity are automatically unleashed when this component is removed. Defaults to true. This item requires a format version of at least 1.26.30.

Samples​

Allay​
"minecraft:leashable_to": {}
Chicken​
"minecraft:leashable_to": {
"unleash_on_removal": false
}

minecraft:looked_at​

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

Defines the behavior when another entity looks at the owner entity.

Looked At Properties​

NameDefault ValueTypeDescription
field_of_view26Decimal numberDefines, in degrees, the width of the field of view for entities looking at the owner entity.
filtersnot setMinecraft filterDefines which entities are considered when searching for entities looking at the owner entity.
find_players_onlyfalseBoolean true/falseLimits the search to only the nearest Player that meets the specified "filters" rather than all nearby entities.
line_of_sight_obstruction_typecollisionStringDefines the type of block shape used to check for line of sight obstructions. Valid values: "outline", "collision", "collision_for_camera".
look_at_locationsnot setArray of stringsA list of locations on the owner entity towards which line of sight checks are performed. At least one location must be unobstructed for the entity to be considered as looked at.
looked_at_cooldownnot setRange of integersSpecifies the range for the random number of seconds that must pass before the owner entity can check again for entities looking at it, after detecting an entity looking at it.
looked_at_eventnot setMinecraft Event TriggerDefines the event to trigger when an entity is detected looking at the owner entity.
min_looked_at_duration0Decimal numberDefines the minimum, continuous time the owner entity has to be looked at before being considered as such. Defaults to 0 if not explicitly specified.
not_looked_at_eventnot setMinecraft Event TriggerDefines the event to trigger when no entity is found looking at the owner entity.
scale_fov_by_distancetrueBoolean true/falseWhen true, the field of view narrows as the distance between the owner entity and the entity looking at it increases.
search_radius10Decimal numberMaximum distance the owner entity will search for entities looking at it.
set_targetfalseSet Target choicesDefines if and how the owner entity will set entities that are looking at it as its combat targets. Valid values: 'never', 'once_and_stop_scanning', 'once_and_keep_scanning'.
set_target (as Integer number from a list of choices)not setInteger number from a list of choicesSet to true/false for legacy boolean targeting behavior.

field_of_view​

Defines, in degrees, the width of the field of view for entities looking at the owner entity. If "scale_fov_by_distance" is set to true, this value corresponds to the field of view at a distance of one block between the entities.

scale_fov_by_distance​

When true, the field of view narrows as the distance between the owner entity and the entity looking at it increases. This ensures that the width of the view cone remains somewhat constant towards the owner entity position, regardless of distance.

Set Target choices​

ValueTitleDescription
neverNever
once_and_stop_scanningOnce And Stop Scanning
once_and_keep_scanningOnce And Keep Scanning

Samples​

minecraft:loot​

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

Specifies the loot table that determines what items this entity drops upon death. The table path is relative to the behavior pack's root folder.

[!Note] Requires a loot table to be used when dropping items upon death.

Loot Properties​

NameDefault ValueTypeDescription
tablenot setStringPath to the loot table JSON file, relative to the behavior pack's root (e.g., 'loot_tables/entities/zombie.json').

Samples​

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