Skip to main content

Entity component reference (11/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:managed_wandering_trader​

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

Manages the entity's ability to trade.

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

  • Wandering Trader (minecraft:wandering_trader)

Samples​

minecraft:mark_variant​

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

Mark Variant is typically used as an additional per-type way (besides variant) to express a different visual form of the same mob.

Mark Variant Properties​

NameDefault ValueTypeDescriptionExample Values
value0Integer numberThe Id of the mark_variant. By convention, 0 is the Id of the base entity.Trader Llama: 1

Samples​

Llama​
"minecraft:mark_variant": {
"value": 0
}
Trader Llama​
"minecraft:mark_variant": {
"value": 1
}

minecraft:mob_effect​

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

A component that applies a mob effect to entities that get within range.

Mob Effect Properties​

NameDefault ValueTypeDescription
ambientfalseBoolean true/falseIf true, the effect renders with the ambient effect background (like Beacons or Conduits) and does not pulse as it nears expiration. This item requires a format version of at least 1.21.130.
cooldown_time0Integer numberTime in seconds to wait between each application of the effect.
effect_range0.2Decimal numberHow close a hostile entity must be to have the mob effect applied.
effect_time10Integer numberHow long the applied mob effect lasts in seconds. Can also be set to "infinite"
entity_filternot setMinecraft filterThe set of entities that are valid to apply the mob effect to.
mob_effectnot setStringThe mob effect that is applied to entities that enter this entities effect range.

Samples​

minecraft:mob_effect_immunity​

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

Entities with this component will have an immunity to the provided mob effects.

Mob Effect Immunity Properties​

NameDefault ValueTypeDescriptionExample Values
mob_effectsnot setArray of stringsList of names of effects the entity is immune to.Parched: ["weakness"], Polar Bear: ["freezing"], Silverfish: ["infested"]

Samples​

Parched​
"minecraft:mob_effect_immunity": {
"mob_effects": [
"weakness"
]
}
Polar Bear​
"minecraft:mob_effect_immunity": {
"mob_effects": [
"freezing"
]
}
Silverfish​
"minecraft:mob_effect_immunity": {
"mob_effects": [
"infested"
]
}
Slime​
"minecraft:mob_effect_immunity": {
"mob_effects": [
"oozing"
]
}

minecraft:movement​

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

Defines the base movement speed of an entity. Typical values: creeper (0.2), cow (0.25), zombie baby (0.35).

Movement Properties​

NameDefault ValueTypeDescription
maxnot setDecimal numberMaximum movement speed this entity can have.
valuenot setDecimal numberThe base movement speed value. Higher values result in faster movement. Can be a single number or a range object with range_min and range_max properties.
value (as Object)not setValue item

Value​

Value Properties​

JSON path: value

NameDefault ValueTypeDescription
range_maxnot setDecimal numberMaximum movement speed
range_minnot setDecimal numberMinimum movement speed

Samples​

minecraft:movement.amphibious​

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

This move control allows the mob to swim in water and walk on land.

Entity Amphibious Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Samples​

Frog​
"minecraft:movement.amphibious": {}

minecraft:movement.basic​

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

This component accents the movement of an entity.

Entity Basic Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Samples​

Bat​
"minecraft:movement.basic": {}

minecraft:movement.dolphin​

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

This component can control how dolphins move, in a dolphin-esque style.

[!Note] This movement is not currently being used in game.

minecraft:movement.fly​

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

This move control causes the mob to fly.

Entity Fly Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.
speed_when_turning0.2Decimal numberSpeed that the mob adjusts to when it has to turn quickly.
start_speed0.1Decimal numberInitial speed of the mob when it starts gliding.

Samples​

Parrot​
"minecraft:movement.fly": {}

minecraft:movement.generic​

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

This move control allows a mob to fly, swim, climb, etc.

Entity Generic Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Samples​

Drowned​
"minecraft:movement.generic": {}

minecraft:movement.glide​

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

Move control for a flying mob that has a gliding movement.

Entity Glide Movement Properties​

NameDefault ValueTypeDescriptionExample Values
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.
speed_when_turning0.2Decimal numberSpeed that the mob adjusts to when it has to turn quickly.Phantom: 0.2
start_speed0.10000000149011612Decimal numberInitial speed of the mob when it starts gliding.Phantom: 0.1

Samples​

Phantom​
"minecraft:movement.glide": {
"speed_when_turning": 0.2,
"start_speed": 0.1
}

minecraft:movement.hover​

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

This move control causes the mob to hover.

Entity Hover Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Samples​

Allay​
"minecraft:movement.hover": {}

minecraft:movement.jump​

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

Move control that causes the mob to jump as it moves with a specified delay between jumps.

[!Note] In order to follow targets, this entity must have the minecraft:behavior.slime_attack component, otherwise the entity will jump in the direction it's looking in.

Entity Jump Movement Properties​

NameDefault ValueTypeDescription
jump_delay{"max":0,"min":0}Jump Delay itemDelay in seconds after landing when using the slime move control. Can be a single number, an array [min, max], or an object with range_min and range_max.
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: jump_delay

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Samples​

minecraft:movement.skip​

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

This move control causes the mob to hop as it moves.

Entity Skip Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.

Samples​

minecraft:movement.sound_distance_offset​

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

Sets the offset used to determine the next step distance for playing a movement sound.

Movement Sound Distance Offset Properties​

NameDefault ValueTypeDescription
value1Decimal numberThe higher the number, the less often the movement sound will be played.

minecraft:movement.sway​

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

This move control causes the mob to sway side to side giving the impression it is swimming.

Entity Sway Movement Properties​

NameDefault ValueTypeDescription
max_turn30Decimal numberThe maximum number in degrees the mob can turn per tick.
sway_amplitude0.05000000074505806Decimal numberStrength of the sway movement.
sway_frequency0.5Decimal numberMultiplier for the frequency of the sway movement.

Samples​

Elder Guardian​
"minecraft:movement.sway": {}

minecraft:nameable​

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

Allows this entity to be named (e.g. using a name tag).

Nameable Properties​

NameDefault ValueTypeDescription
allow_name_tag_renamingtrueBoolean true/falseIf true, this entity can be renamed with name tags
always_showfalseBoolean true/falseIf true, the name will always be shown
default_triggernot setStringTrigger to run when the entity gets named
name_actionsnot setArray of Name Actions itemsDescribes the special names for this entity and the events to call when the entity acquires those names

Name Actions​

Describes the special names for this entity and the events to call when the entity acquires those names.

Name Actions Properties​

JSON path: name_actions

NameDefault ValueTypeDescription
name_filternot setStringList of special names that will cause the events defined in 'on_named' to fire
on_namednot setMinecraft Event TriggerEvent to be called when this entity acquires the name specified in 'name_filter'

Samples​

Allay​
"minecraft:nameable": {}

minecraft:navigation.climb​

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

Allows this entity to generate paths that include vertical walls like the vanilla Spiders do.

Climb Navigation Properties​

NameDefault ValueTypeDescriptionExample Values
avoid_damage_blocksfalseBoolean true/falseTells the pathfinder to avoid blocks that cause damage when finding a path
avoid_portalsfalseBoolean true/falseTells the pathfinder to avoid portals (like nether portals) when finding a path
avoid_sunfalseBoolean true/falseWhether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths
avoid_waterfalseBoolean true/falseTells the pathfinder to avoid water when creating a path
blocks_to_avoidnot setArray of stringsTells the pathfinder which blocks to avoid when creating a path
can_breachfalseBoolean true/falseTells the pathfinder whether or not it can jump out of water (like a dolphin)
can_break_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door and break it
can_jumptrueBoolean true/falseTells the pathfinder whether or not it can jump up blocks
can_open_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door assuming the AI will open the door
can_open_iron_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed iron door assuming the AI will open the door
can_pass_doorstrueBoolean true/falseWhether a path can be created through a door
can_path_from_airfalseBoolean true/falseTells the pathfinder that it can start pathing when in the air
can_path_over_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the lava
can_path_over_waterfalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the waterCave Spider: true
can_sinktrueBoolean true/falseTells the pathfinder whether or not it will be pulled down by gravity while in water
can_swimfalseBoolean true/falseTells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path
can_walktrueBoolean true/falseTells the pathfinder whether or not it can walk on the ground outside water
can_walk_in_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel in lava like walking on ground
is_amphibiousfalseBoolean true/falseTells the pathfinder whether or not it can walk on the ground underwater

Samples​

Cave Spider​
"minecraft:navigation.climb": {
"can_path_over_water": true
}

minecraft:navigation.float​

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

Allows this entity to generate paths by flying around the air like the regular Ghast.

Float Navigation Properties​

NameDefault ValueTypeDescriptionExample Values
avoid_damage_blocksfalseBoolean true/falseTells the pathfinder to avoid blocks that cause damage when finding a path
avoid_portalsfalseBoolean true/falseTells the pathfinder to avoid portals (like nether portals) when finding a path
avoid_sunfalseBoolean true/falseWhether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths
avoid_waterfalseBoolean true/falseTells the pathfinder to avoid water when creating a path
blocks_to_avoidnot setArray of stringsTells the pathfinder which blocks to avoid when creating a path
can_breachfalseBoolean true/falseTells the pathfinder whether or not it can jump out of water (like a dolphin)
can_break_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door and break it
can_jumptrueBoolean true/falseTells the pathfinder whether or not it can jump up blocks
can_open_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door assuming the AI will open the door
can_open_iron_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed iron door assuming the AI will open the door
can_pass_doorstrueBoolean true/falseWhether a path can be created through a door
can_path_from_airfalseBoolean true/falseTells the pathfinder that it can start pathing when in the air
can_path_over_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the lava
can_path_over_waterfalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the waterBat: true
can_sinktrueBoolean true/falseTells the pathfinder whether or not it will be pulled down by gravity while in water
can_swimfalseBoolean true/falseTells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path
can_walktrueBoolean true/falseTells the pathfinder whether or not it can walk on the ground outside water
can_walk_in_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel in lava like walking on ground
is_amphibiousfalseBoolean true/falseTells the pathfinder whether or not it can walk on the ground underwater
using_door_annotationnot setStringBat: true

Samples​

Bat​
"minecraft:navigation.float": {
"can_path_over_water": true,
"using_door_annotation": true
}

minecraft:navigation.fly​

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

Allows this entity to generate paths in the air like the vanilla Parrots do.

Fly Navigation Properties​

NameDefault ValueTypeDescriptionExample Values
avoid_damage_blocksfalseBoolean true/falseTells the pathfinder to avoid blocks that cause damage when finding a path
avoid_portalsfalseBoolean true/falseTells the pathfinder to avoid portals (like nether portals) when finding a path
avoid_sunfalseBoolean true/falseWhether or not the pathfinder should avoid tiles that are exposed to the sun when creating paths
avoid_waterfalseBoolean true/falseTells the pathfinder to avoid water when creating a path
blocks_to_avoidnot setArray of stringsTells the pathfinder which blocks to avoid when creating a path
can_breachfalseBoolean true/falseTells the pathfinder whether or not it can jump out of water (like a dolphin)
can_break_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door and break it
can_jumptrueBoolean true/falseTells the pathfinder whether or not it can jump up blocks
can_open_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed door assuming the AI will open the door
can_open_iron_doorsfalseBoolean true/falseTells the pathfinder that it can path through a closed iron door assuming the AI will open the door
can_pass_doorstrueBoolean true/falseWhether a path can be created through a door
can_path_from_airfalseBoolean true/falseTells the pathfinder that it can start pathing when in the airParrot: true
can_path_over_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the lava
can_path_over_waterfalseBoolean true/falseTells the pathfinder whether or not it can travel on the surface of the waterParrot: true
can_sinktrueBoolean true/falseTells the pathfinder whether or not it will be pulled down by gravity while in water
can_swimfalseBoolean true/falseTells the pathfinder whether or not it can path anywhere through water and plays swimming animation along that path
can_walktrueBoolean true/falseTells the pathfinder whether or not it can walk on the ground outside water
can_walk_in_lavafalseBoolean true/falseTells the pathfinder whether or not it can travel in lava like walking on ground
is_amphibiousfalseBoolean true/falseTells the pathfinder whether or not it can walk on the ground underwater

Samples​

Parrot​
"minecraft:navigation.fly": {
"can_path_from_air": true,
"can_path_over_water": true
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13