Skip to main content

Entity component reference (16/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:rideable​

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

This entity can be ridden.

Entity Rideable Properties​

NameDefault ValueTypeDescriptionExample Values
controlling_seat0Integer numberThe seat that designates the driver of the entity. Entities with the "minecraft:behavior.controlled_by_player" goal ignore this field and give control to any player in any seat.
crouching_skip_interacttrueBoolean true/falseIf true, this entity can't be interacted with if the entity interacting with it is crouching.Llama: true
dismount_modedefaultDismount Mode choicesDefines where riders are placed when dismounting this entity: - "default", riders are placed on a valid ground position around the entity, or at the center of the entity's collision box if none is found.Cushion: "on_top_center"
family_types[]Array of stringsList of entities that can ride this entity.Chicken: ["baby_undead"], Llama: ["player"]
interact_textStringThe text to display when the player can interact with the entity when playing with touch-screen controls.Cushion: "action.interact.ride.cushion", Llama: "action.interact.mount", "action.interact.ride.horse"
on_rider_enter_eventMinecraft Event ReferenceEvent to execute on the owner entity when an entity starts riding it. This item requires a format version of at least 1.21.80.
on_rider_exit_eventMinecraft Event ReferenceEvent to execute on the owner entity when an entity stops riding it. This item requires a format version of at least 1.21.80.
passenger_max_width0Decimal numberThe max width a mob can have to be a rider. A value of 0 ignores this parameter.
prioritynot setInteger numberThis field may exist in old data but isn't used by "minecraft:rideable".
pull_in_entitiesfalseBoolean true/falseIf true, this entity will pull entities matching the specified "family_types" into any available seats.Minecart: true
rider_can_interactfalseBoolean true/falseIf true, this entity will be picked when looked at by the rider.
seat_count1Integer numberThe number of entities that can ride this entity at the same time.Chicken: 1
seats (Entity SeatDescription)[]Array of Seats itemsThe list of positions and number of riders for each position for entities riding this entity.Chicken: {"position":[0,0.48,0]}, Cow: {"position":[0,1,0]}, {"position":[0,1.15,0]}
seats (as Object)not setObject
pulls_in_entitiesnot setBoolean true/false

dismount_mode​

Defines where riders are placed when dismounting this entity: - "default", riders are placed on a valid ground position around the entity, or at the center of the entity's collision box if none is found. - "on_top_center", riders are placed at the center of the top of the entity's collision box. - "look_direction", riders are placed at the center of the top neighboring block in the riders look direction on a block that is not lava. This item requires a format version of at least 1.21.80.

pull_in_entities​

If true, this entity will pull entities matching the specified "family_types" into any available seats. Entities that are leashed will only be pulled in if their distance to their leash holder is less than the "hard_distance" defined in their own "minecraft:leashable" component.

Dismount Mode choices​

ValueTitleDescription
defaultDefault
on_top_centerOn Top Center
look_directionLook direction

Entity SeatDescription​

Entity SeatDescription Properties​

JSON path: seats

NameDefault ValueTypeDescription
camera_relax_distance_smoothingnot setDecimal numberWhen the camera relaxes to the full distance after being pushed by an obstacle, this value can override the default movement.
lock_rider_rotation181Decimal numberAngle in degrees that a rider is allowed to rotate while riding this entity. Omit this property for no limit.
max_rider_countnot setInteger numberDefines the maximum number of riders that can be riding this entity for this seat to be valid.
min_rider_count0Integer numberDefines the minimum number of riders that need to be riding this entity before this seat can be used.
position[0, 0, 0]Array of numbersPosition of this seat relative to this entity's position.
position (Position)not setPosition (Position) item
rotate_rider_by0Keyed set of stringsOffset to rotate riders by.
rotate_rider_by (as Named set of objects)not setKey/item pairs of Rotate Rider By (Legacy Molang Expression) items
rotate_rider_by (as Decimal number)not setDecimal number
third_person_camera_radiusnot setDecimal numberA different radius that the third_person and third_person_front cameras should use for the player is in this seat. Negative values are ignored. Value must be >= 1. Value must be <= 64.
camera_relax_distance_smoothing​

When the camera relaxes to the full distance after being pushed by an obstacle, this value can override the default movement. This value describes the stiffness of the spring that pushes the camera back out. Negative values are ignored. Value must be >= 1. Value must be <= 32.

Position (Position)​
Position Properties​

JSON path: seats > position

NameDefault ValueTypeDescription
x0Decimal number
y0Decimal number
z0Decimal number
Legacy Molang Expression​
Legacy Molang Expression Properties​

JSON path: seats > rotate_rider_by

NameDefault ValueTypeDescription
expressionnot setString
versionnot setInteger number

Samples​

Chicken​
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"baby_undead"
],
"seats": {
"position": [
0,
0.48,
0
]
}
}
Cow​

At /minecraft:entity/component_groups/minecraft:cow_baby/minecraft:rideable/:

"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"baby_undead"
],
"seats": {
"position": [
0,
1,
0
]
}
}

At /minecraft:entity/component_groups/minecraft:cow_adult/minecraft:rideable/:

"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"baby_undead"
],
"seats": {
"position": [
0,
1.15,
0
]
}
}
Cushion​
"minecraft:rideable": {
"seat_count": 1,
"interact_text": "action.interact.ride.cushion",
"dismount_mode": "on_top_center",
"seats": [
{
"position": [
0,
0.0625,
0
],
"rotate_rider_by": -90
}
]
}
Llama​

At /minecraft:entity/component_groups/minecraft:llama_wild/minecraft:rideable/:

"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"player"
],
"interact_text": "action.interact.mount",
"seats": [
{
"position": [
0,
1.17,
-0.3
]
}
]
}

At /minecraft:entity/component_groups/minecraft:llama_tamed/minecraft:rideable/:

"minecraft:rideable": {
"seat_count": 1,
"crouching_skip_interact": true,
"family_types": [
"player"
],
"interact_text": "action.interact.ride.horse",
"seats": [
{
"position": [
0,
1.17,
-0.3
]
}
]
}
Minecart​
"minecraft:rideable": {
"interact_text": "action.interact.ride.minecart",
"pull_in_entities": true,
"seat_count": 1,
"seats": {
"position": [
0,
-0.2,
0
]
}
}

minecraft:rotation_axis_aligned​

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

Causes the entity to automatically rotate to align with the nearest cardinal direction based on its current facing direction. Combining this with the "minecraft:body_rotation_blocked" component will cause the entity's body to align with the nearest cardinal direction and remain fixed in that orientation, regardless of changes in its facing direction.

Samples​

minecraft:rotation_locked_to_vehicle​

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

Causes the entity's rotation to match their vehicle's facing direction.

[!Note] Introduced in 1.21.130 as a rename of minecraft:body_rotation_locked_to_vehicle. Locks both the entity's body rotation and overall rotation to its mounted vehicle's facing direction.

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

Samples​

Drowned​
"minecraft:rotation_locked_to_vehicle": {}

minecraft:scaffolding_climber​

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

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Allows the player to detect and manuever on the scaffolding block.

[!Note] minecraft:scaffolding_climber has been deprecated and replaced for minecraft:block_climber.

minecraft:scale​

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

Sets the entity's visual size multiplier. A value of 1.0 means normal size, 0.5 is half size (commonly used for baby mobs), and values above 1.0 make the entity larger.

Scale Properties​

NameDefault ValueTypeDescription
value1Decimal numberThe scale multiplier for visual size. 1.0 = normal, 0.5 = half (babies), 2.0 = double size.

Samples​

minecraft:scale_by_age​

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

Defines the entity's size interpolation based on the entity's age.

Entity Scale By Age Properties​

NameDefault ValueTypeDescription
end_scale1Decimal numberEnding scale of the entity when it's fully grown.
start_scale1Decimal numberInitial scale of the newborn entity.

minecraft:scheduler​

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

Fires off scheduled mob events at time of day events.

Scheduler Properties​

NameDefault ValueTypeDescription
max_delay_secsnot setDecimal number
min_delay_secsnot setDecimal number
scheduled_eventsnot setArray of objectsThe list of triggers that fire when the conditions match the given filter criteria. Can be an array of event objects or a single event object.
scheduled_events (as Object)not setObject

Samples​

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