Commands/ride

Allows entities to mount or dismount other entities.

Usage
$$, all types of entities (except marker and player) can ride and be ridden by other entities of any types. Marker and player cannot be ridden.

$$, an entity cannot ride entities which are not normally rideable for it in vanilla game, which is data driven, controlled by the component in the entity files in bahavior packs (see also the official doc). $$, this command can also be used to summon passengers and mounts.

Syntax

 * Java Edition
 * Makes  ride on.
 * Dismounts  from any vehicle it is riding.
 * Dismounts  from any vehicle it is riding.
 * Dismounts  from any vehicle it is riding.


 * Bedrock Edition
 * Tries to make  ride on.
 * Makes  dismount.
 * Makes entities that are riding on  dismount.
 * Summons an entity at the position of each of  that are rideable and not full, and then tries to make them ride on.
 * Summons an entity at the position of each of, and then tries to make   ride on them.
 * Makes entities that are riding on  dismount.
 * Summons an entity at the position of each of  that are rideable and not full, and then tries to make them ride on.
 * Summons an entity at the position of each of, and then tries to make   ride on them.
 * Summons an entity at the position of each of, and then tries to make   ride on them.
 * Summons an entity at the position of each of, and then tries to make   ride on them.

Arguments

 * Specifies the passenger.
 * Specifies the passenger.


 * Specifies the mount.
 * Specifies the mount.


 * Specifies the passengers.
 * If in  mode, should be only one entity if   is.
 * If in  mode, should be only one entity if   is.


 * Specifies an mount.
 * Should be only one entity.
 * Should be only one entity.


 * Specifies the mounts.
 * Specifies the mounts.


 * Must be one of  and.
 * Specified which entities are teleported. If unspecified, defaults to.
 * Specified which entities are teleported. If unspecified, defaults to.


 * Must be one of  and.
 * If, checks whether all   can ride on   at the same time, and makes them ride only if true.
 * If  or unspecified, makes them ride up one by one until it's full.
 * If  or unspecified, makes them ride up one by one until it's full.


 * Specifies the entities to be summoned.
 * Specifies the entities to be summoned.


 * Specifies the entity event for the to-be-summoned entities. Should be a spawn event (event name for entities in behavior pack).
 * Specifies the entity event for the to-be-summoned entities. Should be a spawn event (event name for entities in behavior pack).


 * Specifies the name of the to-be-summoned entities.
 * Specifies the name of the to-be-summoned entities.


 * Must be one of,  , and.
 * If, summons entities only for   that are not riding on another entity.
 * If, summons entities only for   that are not riding on and not ridden by other entity(s).
 * If  or unspecified, makes   dismount if they're riding, then summons entities for all of them.
 * If  or unspecified, makes   dismount if they're riding, then summons entities for all of them.

Example
$$, make the nearest player ride on an nearest arror:

$$, summon an arrow at the position of each player who have "A" tag:

$$, summon a charged creeper at the position of each player who have "A" tag:

History
Befehl/ride コマンド/ride Comandos/ride 命令/ride