Commands/ride

From Minecraft Wiki
Jump to: navigation, search
Grass Block JE7 BE6.png
This page describes content that may be included in a future update to Bedrock Edition.
These features have appeared in Bedrock Edition development versions, but the full update containing these features has not been released for Bedrock Edition yet.
ride
Restrictions

Operator

First introduced

BE 1.16.100 (1.16.100.52)

Information icon.svg
This feature is exclusive to Bedrock Edition.

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 not riding on and not ridden by other entity(s), 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>

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

ride: target: CommandSelector<Actor>

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

rides: target: CommandSelector<Actor>

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

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

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

spawnEvent: string: basic_string

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

nameTag: string: basic_string

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

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, summons entities for all entities.

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 ...if more than one entity is targeted by <ride: target>
if entity targeted by <ride: target> is not rideable or already full
if all riders do not meet ride conditions.[more information needed]
if teleportRules: TeleportRules is teleport_ride and more than one entity is targeted by <riders: target>.
if howToFill: FillType is if_group_fits and too many entities is targeted by <riders: target> to ride up at the same time.
/... stop_ridingif no entity is riding on another.
/... evict_ridersif no entity is ridden by other entities.
/... summon_rider ...if all entity is already full or not rideable.
if trying to summon hostiles in peaceful difficulty.
/... summon_ride ...if all entity cannot be ridden by <riders: target>.
if 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]

Upcoming Bedrock Edition
1.16.100beta 1.16.100.52Added /ride.