Commands/ride

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Bedrock Edition. 
ride
Permission level required

1

Restrictions

Cheat only

Used to make entities ride other entities, stop entities from riding, make rides evict their riders, or summon rides or riders.

Syntax[edit]

ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType]
Makes <riders: target> ride on <ride: target>.
ride <riders: target> stop_riding
Makes <riders: target> dismount.
ride <rides: target> evict_riders
Makes entities that are riding on <rides: target> dismount.
ride <rides: target> summon_rider <entityType: EntityType> [spawnEvent: string] [nameTag: string]
Summon an entity at the position of each of <rides: target> that are rideable and not full, then make them ride on <rides: target>.
ride <riders: target> summon_ride <entityType: EntityType> [rideRules: RideRules] [spawnEvent: string] [nameTag: string]
Summon an entity at the position of each of <riders: target>, then make <riders: target> ride on them.

Arguments[edit]

riders: target: CommandSelector<Actor>

Specifies the riders.
If in start_riding mode, should be only one entity if teleportRules: TeleportRules is teleport_ride.
Must be a player name or a target selector.

ride: target: CommandSelector<Actor>

Specifies an entity to be ridden on.
Should be only one entity.
Must be a player name or a target selector.

rides: target: CommandSelector<Actor>

Specifies entities that are ridden.
Must be a player name or a target selector.

teleportRules: TeleportRules

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

howToFill: FillType

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

entityType: EntityType: ActorDefinitionIdentifier

Specifies the entities to be summoned.
Must be a name ID of a summonable entity type.

spawnEvent: string: basic_string

Specifies the in-game event for the to-be-summoned entities. Should be a spawn event (event name for entities in behavior pack).
Must be either a single word (no spaces) or a quoted string.

nameTag: string: basic_string

Specifies the name of the to-be-summoned entities.
Must be either a single word (no spaces) or a quoted string.

rideRules: RideRules

Must be one of no_ride_change, reassign_rides, and skip_riders.
  • If skip_riders, summons entities only for <riders: target> that are not riding on another entity.
  • If no_ride_change, summons entities only for <riders: target> that are not riding on and not ridden by other entity(s).
  • If reassign_rides or unspecified, makes <riders: target> dismount if they're riding, then summons entities for all of them.

Result[edit]

CommandTriggerBedrock Edition
anythe arguments are not specified correctly Failed
if riders: target, rides: target, or ride: target fails to resolve to one or more entities (named players must be online)
/... start_riding ...more than one entity is targeted by <ride: target>
entity targeted by <ride: target> is not rideable or already full
all riders do not meet ride conditions.[more information needed]
teleportRules: TeleportRules is teleport_ride and more than one entity is targeted by <riders: target>.
howToFill: FillType is if_group_fits and too many entities is targeted by <riders: target> to ride up at the same time.
howToFill: FillType is if_group_fits and one of <riders: target> does not meet ride conditions.
/... stop_ridingnone of <riders: target> is riding on other entity.
/... evict_ridersnone of <rides: target> is ridden by other entities.
/... summon_rider ...all <rides: target> are already full or not rideable.
trying to summon hostiles in peaceful difficulty.
/... summon_ride ...all summoned entities cannot be ridden by <riders: target>.
trying to summon hostiles in peaceful difficulty.
anyOn successMake entities ride, stop riding, or evict their riders, or summons rides or riders.

Output[edit]

CommandEditionSituationSuccess Count
anyBedrock EditionOn fail0
/... start_riding ...On successthe number of entities that get riding on the targeted ride
/... stop_riding ...On successthe number of entities that get dismounted
/... evict_riders ...On successthe number of entities that successfully evict their riders
/... summon_rider ...On successthe number of summoned entities that successfully ride on their linked rides
/... summon_ride ...On successthe number of summoned entities that are successfully ridden by their linked riders

Example[edit]

Summon an arrow at the position of each player who have "A" tag:

  • /ride @a[tag=A] summon_ride arrow

Summon a charged creeper at the position of each player who have "A" tag:

  • /ride @a[tag=A] summon_ride creeper reassign_rides minecraft:become_charged

History[edit]

Bedrock Edition
1.16.100beta 1.16.100.52Added /ride.