watch 28:07
Minecraft Interactive Experience
Do you like this video?
Play Sound
This feature is exclusive to Bedrock Edition and Education 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[]
ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType]
- Makes
<riders: target>
ride on<ride: target>
.
- Makes
ride <riders: target> stop_riding
- Makes
<riders: target>
dismount.
- Makes
ride <rides: target> evict_riders
- Makes entities that are riding on
<rides: target>
dismount.
- Makes entities that are riding on
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>
.
- Summon an entity at the position of each of
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.
- Summon an entity at the position of each of
Arguments[]
riders: target
: CommandSelector<Actor>
- Specifies the riders.
- If in
start_riding
mode, should be only one entity ifteleportRules: TeleportRules
isteleport_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
: enum
- Must be one of
teleport_ride
andteleport_rider
. - Specified which entities are teleported. If unspecified, defaults to
teleport_rider
.
howToFill: FillType
: enum
- Must be one of
if_group_fits
anduntil_full
.- If
if_group_fits
, checks whether allriders: target
can ride onride: 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.
- If
entityType: EntityType
: enum
- 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 a string. And it must be a single word that has no space or a quoted string.
nameTag: string
: basic_string
- Specifies the name of the to-be-summoned entities.
- Must be a string. And it must be a single word that has no space or a quoted string.
rideRules: RideRules
: enum
- Must be one of
no_ride_change
,reassign_rides
, andskip_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.
- If
Result[]
Command | Trigger | Bedrock Edition |
---|---|---|
any | the 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_riding | none of <riders: target> is riding on other entity. | |
/... evict_riders | none 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. | ||
any | On success | Make entities ride, stop riding, or evict their riders, or summons rides or riders. |
Output[]
Command | Edition | Situation | Success Count |
---|---|---|---|
any | Bedrock Edition | On fail | 0 |
/... start_riding ... | On success | the number of entities that get riding on the targeted ride | |
/... stop_riding ... | On success | the number of entities that get dismounted | |
/... evict_riders ... | On success | the number of entities that successfully evict their riders | |
/... summon_rider ... | On success | the number of summoned entities that successfully ride on their linked rides | |
/... summon_ride ... | On success | the number of summoned entities that are successfully ridden by their linked riders |
Example[]
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[]
Bedrock Edition | |||||
---|---|---|---|---|---|
1.16.100 | beta 1.16.100.52 | Added /ride . |