Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/ride: Difference between revisions

From SAS Gaming Wiki
imported>Rogerio980Pizzaa
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Redirect|Ride|the mechanic|riding}}
{{MC/Redirect|Ride|the mechanic|riding}}
{{Infobox command
{{Infobox command
|name=ride
|name=ride
|oplevel=2{{only|java|short=1}}<br>1{{only|bedrock|short=1}}
|oplevel=2{{only|java|short=1}}<br>1{{only|bedrock|short=1}}
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}
|others=Cheat only{{only|bedrock|short=1}}
}}
}}
Allows entities to mount or dismount other entities.
Allows entities to mount or dismount other entities.


== Usage ==
== Usage ==
{{main|Riding}}
{{MC/Main|Riding}}
{{IN|java}}, all types of entities can ride another entity, and most can be ridden by one. The entities which cannot be ridden are [[Minecraft:marker]]s, [[Minecraft:player]]s, [[Minecraft:fishing bobber]]s, [[Minecraft:leash knot]]s, and [[Minecraft:lightning bolt]]s. When riding, the entity is known as a passenger. When ridden, the entity is known as the vehicle.
{{MC/In|java}}, all types of entities can ride another entity, and most can be ridden by one. The entities which cannot be ridden are markers, players, fishing bobbers, leash knots, and lightning bolts. When riding, the entity is known as a passenger. When ridden, the entity is known as the vehicle.


{{IN|bedrock}}, an entity cannot ride entities which are not normally rideable for it in vanilla game, which is mainly data driven, controlled by the {{cd|minecraft:rideable}} component in the entity files in behavior packs (see [[Minecraft:Riding#Valid riding combinations in vanilla]] for details; see also the [https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_rideable official doc]). {{IN|bedrock}}, this command can also be used to summon passengers and mounts.
{{MC/In|bedrock}}, an entity cannot ride entities which are not normally rideable for it in vanilla game, which is mainly data driven, controlled by the {{MC/Cd|minecraft:rideable}} component in the entity files in behavior packs (see Riding for details; see also the [https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_rideable official doc]). {{MC/In|bedrock}}, this command can also be used to summon passengers and mounts.


==Syntax==
==Syntax==
Line 35: Line 35:
==Arguments==
==Arguments==


{{el|java|short=1}}: {{argument|target|entity}}
{{MC/El|java|short=1}}: {{MC/Argument|target|entity}}
: Specifies the passenger.
: Specifies the passenger.
: {{arg desc|je=entity|amount=single|type=entities}}
: {{MC/Arg desc|je=entity|amount=single|type=entities}}


{{el|java|short=1}}: {{argument|vehicle|entity}}
{{MC/El|java|short=1}}: {{MC/Argument|vehicle|entity}}
: Specifies the mount.
: Specifies the mount.
: {{arg desc|je=entity|amount=single|type=entities}}
: {{MC/Arg desc|je=entity|amount=single|type=entities}}


{{el|bedrock|short=1}}: {{argument|be=1|riders: target|CommandSelector<Actor>}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|riders: target|CommandSelector<Actor>}}
: Specifies the passengers.
: Specifies the passengers.
: If in <code>start_riding</code> mode, should be only one entity if <code>teleportRules: TeleportRules</code> is <code>teleport_ride</code>.
: If in <code>start_riding</code> mode, should be only one entity if <code>teleportRules: TeleportRules</code> is <code>teleport_ride</code>.
: {{arg desc|be=actor}}
: {{MC/Arg desc|be=actor}}


{{el|bedrock|short=1}}: {{argument|be=1|ride: target|CommandSelector<Actor>}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|ride: target|CommandSelector<Actor>}}
: Specifies a mount.
: Specifies a mount.
: Should be only one entity.
: Should be only one entity.
: {{arg desc|be=actor}}
: {{MC/Arg desc|be=actor}}


{{el|bedrock|short=1}}: {{argument|be=1|rides: target|CommandSelector<Actor>}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|rides: target|CommandSelector<Actor>}}
: Specifies the mounts.
: Specifies the mounts.
: {{arg desc|be=actor}}
: {{MC/Arg desc|be=actor}}


{{el|bedrock|short=1}}: {{argument|be=1|teleportRules: TeleportRules|enum}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|teleportRules: TeleportRules|enum}}
: Must be one of <code>teleport_ride</code> and <code>teleport_rider</code>.
: Must be one of <code>teleport_ride</code> and <code>teleport_rider</code>.
: Specified which entities are teleported. If unspecified, defaults to <code>teleport_rider</code>.
: Specified which entities are teleported. If unspecified, defaults to <code>teleport_rider</code>.


{{el|bedrock|short=1}}: {{argument|be=1|howToFill: FillType|enum}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|howToFill: FillType|enum}}
: Must be one of <code>if_group_fits</code> and <code>until_full</code>.
: Must be one of <code>if_group_fits</code> and <code>until_full</code>.
:* If <code>if_group_fits</code>, checks whether all the riders can ride on the mount at the same time, and makes all of them ride the mount only if true.
:* If <code>if_group_fits</code>, checks whether all the riders can ride on the mount at the same time, and makes all of them ride the mount only if true.
:* If <code>until_full</code> or unspecified, makes them ride up one by one until the mount is full.
:* If <code>until_full</code> or unspecified, makes them ride up one by one until the mount is full.


{{el|bedrock|short=1}}: {{argument|be=1|entityType: EntityType|enum}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|entityType: EntityType|enum}}
: Specifies the entities to be summoned.
: Specifies the entities to be summoned.
: Must be an ID of an entity type.
: Must be an ID of an entity type.


{{el|bedrock|short=1}}: {{argument|be=1|spawnEvent: string|basic_string}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|spawnEvent: string|basic_string}}
: Specifies the entity event for the to-be-summoned entities. Should be a [[Minecraft:spawn event]] (event name for entities in behavior pack).
: Specifies the entity event for the to-be-summoned entities. Should be a [[Minecraft:spawn event]] (event name for entities in behavior pack).
: {{arg desc|be=string}}
: {{MC/Arg desc|be=string}}


{{el|bedrock|short=1}}: {{argument|be=1|nameTag: string|basic_string}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|nameTag: string|basic_string}}
: Specifies the name of the to-be-summoned entities.
: Specifies the name of the to-be-summoned entities.
: {{arg desc|be=string}}
: {{MC/Arg desc|be=string}}


{{el|bedrock|short=1}}: {{argument|be=1|rideRules: RideRules|enum}}
{{MC/El|bedrock|short=1}}: {{MC/Argument|be=1|rideRules: RideRules|enum}}
: Must be one of <code>no_ride_change</code>, <code>reassign_rides</code>, and <code>skip_riders</code>.
: Must be one of <code>no_ride_change</code>, <code>reassign_rides</code>, and <code>skip_riders</code>.
:* If <code>skip_riders</code>, summons entities only for <code><riders: target></code> that are not riding on another entity.
:* If <code>skip_riders</code>, summons entities only for <code><riders: target></code> that are not riding on another entity.
Line 90: Line 90:
{{Result table|<code><target></code> or <code><vehicle></code> fails to resolve to an entity (named players must be online).|fail|N/A}}
{{Result table|<code><target></code> or <code><vehicle></code> fails to resolve to an entity (named players must be online).|fail|N/A}}
{{Result table|cmd=/ride ... mount ...|<code><target></code> is already riding on an entity.}}
{{Result table|cmd=/ride ... mount ...|<code><target></code> is already riding on an entity.}}
{{Result table|<code><vehicle></code> is a [[Minecraft:marker]], [[Minecraft:player]], [[Minecraft:fishing bobber]], [[Minecraft:leash knot]], or [[Minecraft:lightning bolt]].}}
{{Result table|<code><vehicle></code> is a marker, player, fishing bobber, leash knot, or lightning bolt.}}
{{Result table|A mounting loop is detected (<code><vehicle></code> is riding <code><target></code>, or its passengers, or passengers of its passengers, etc.).}}
{{Result table|A mounting loop is detected (<code><vehicle></code> is riding <code><target></code>, or its passengers, or passengers of its passengers, etc.).}}
{{Result table|<code><target></code> and <code><vehicle></code> are in different dimensions.}}
{{Result table|<code><target></code> and <code><vehicle></code> are in different dimensions.}}
Line 111: Line 111:


==Output==
==Output==
{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|On success|1|1|1}}
{{MC/Output table|On success|1|1|1}}
{{Output table|edition=be|cmd=|On fail|0}}
{{MC/Output table|edition=be|cmd=|On fail|0}}
{{Output table|cmd=/... start_riding ...|On success|the number of entities that get riding on the targeted ride}}
{{MC/Output table|cmd=/... start_riding ...|On success|the number of entities that get riding on the targeted ride}}
{{Output table|cmd=/... stop_riding ...|On success|the number of entities that get dismounted}}
{{MC/Output table|cmd=/... stop_riding ...|On success|the number of entities that get dismounted}}
{{Output table|cmd=/... evict_riders ...|On success|the number of entities that successfully evict their riders}}
{{MC/Output table|cmd=/... evict_riders ...|On success|the number of entities that successfully evict their riders}}
{{Output table|cmd=/... summon_rider ...|On success|the number of summoned entities that successfully ride on their linked rides}}
{{MC/Output table|cmd=/... summon_rider ...|On success|the number of summoned entities that successfully ride on their linked rides}}
{{Output table|cmd=/... summon_ride ...|On success|the number of summoned entities that are successfully ridden by their linked riders}}
{{MC/Output table|cmd=/... summon_ride ...|On success|the number of summoned entities that are successfully ridden by their linked riders}}
{{Output table}}
{{MC/Output table}}


==Example==
==Example==


{{IN|java}}, to ride and try to [[Minecraft:tame]] a [[Minecraft:skeleton horse]] in the same way as a regular [[Minecraft:horse]]:
{{MC/In|java}}, to ride and try to tame a skeleton horse in the same way as a regular [[Minecraft:horse]]:
*<code>/ride @s mount @e[type=minecraft:skeleton_horse,limit=1]</code>
*<code>/ride @s mount @e[type=minecraft:skeleton_horse,limit=1]</code>


{{IN|java}}, make yourself ride on the nearest arrow:
{{MC/In|java}}, make yourself ride on the nearest arrow:
*<code>/ride @s mount @n[type=arrow]</code>
*<code>/ride @s mount @n[type=arrow]</code>


{{IN|bedrock}}, summon an arrow at the position of each player who have "A" tag:
{{MC/In|bedrock}}, summon an arrow at the position of each player who have "A" tag:
*<code>/ride @a[tag=A] summon_ride arrow</code>
*<code>/ride @a[tag=A] summon_ride arrow</code>


{{IN|bedrock}}, summon a charged creeper at the position of each player who have "A" tag:
{{MC/In|bedrock}}, summon a charged creeper at the position of each player who have "A" tag:
*<code>/ride @a[tag=A] summon_ride creeper reassign_rides minecraft:become_charged</code>
*<code>/ride @a[tag=A] summon_ride creeper reassign_rides minecraft:become_charged</code>


Line 139: Line 139:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.19.4|dev=23w03a|Added {{cmd|ride|link=none}}.}}
|{{HistoryLine||1.19.4|dev=23w03a|Added {{MC/Cmd|ride|link=none}}.}}
|{{HistoryLine||1.21.2|dev=24w40a|No longer makes players ride [[Minecraft:leash knot]]s, [[Minecraft:lightning bolt]]s and [[Minecraft:fishing bobber]]s.}}
|{{MC/HistoryLine||1.21.2|dev=24w40a|No longer makes players ride leash knots, lightning bolts and fishing bobbers.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.52|Added {{cmd|ride|link=none}}.}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.52|Added {{MC/Cmd|ride|link=none}}.}}
}}
}}


Line 155: Line 155:


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


[[Minecraft:de:Befehl/ride]]
de:Befehl/ride
[[Minecraft:ja:コマンド/ride]]
ja:コマンド/ride
[[Minecraft:pt:Comandos/ride]]
pt:Comandos/ride
[[Minecraft:ru:Команды консоли/ride]]
ru:Команды консоли/ride
[[Minecraft:zh:命令/ride]]
zh:命令/ride

Latest revision as of 20:13, 9 April 2026

Template:Hatnote Template:Infobox command Allows entities to mount or dismount other entities.

Usage

{{#vardefine:params|0 }}Template:Hatnote in Template:Editions, all types of entities can ride another entity, and most can be ridden by one. The entities which cannot be ridden are markers, players, fishing bobbers, leash knots, and lightning bolts. When riding, the entity is known as a passenger. When ridden, the entity is known as the vehicle.

in Template:Editions, an entity cannot ride entities which are not normally rideable for it in vanilla game, which is mainly data driven, controlled by the

  1. REDIRECT Template:Code

Template:Redr component in the entity files in behavior packs (see Riding for details; see also the official doc). in Template:Editions, this command can also be used to summon passengers and mounts.

Syntax

  • Java Edition
ride <target> mount <vehicle>
Makes <target> ride on <vehicle>.
ride <target> dismount
Dismounts <target> from any vehicle it is riding.
  • Bedrock Edition
ride <riders: target> start_riding <ride: target> [teleportRules: TeleportRules] [howToFill: FillType]
Tries to make <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]
Summons an entity at the position of each of <rides: target> that are rideable and not full, and then tries to make them ride on <rides: target>.
ride <riders: target> summon_ride <entityType: EntityType> [rideRules: RideRules] [spawnEvent: string] [nameTag: string]
Summons an entity at the position of each of <riders: target>, and then tries to make <riders: target> ride on them.

Arguments

  1. REDIRECT Template:Edition

Template:Rcat: <target>: entity

Specifies the passenger.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: <vehicle>: entity

Specifies the mount.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: riders: target: CommandSelector<Actor>

Specifies the passengers.
If in start_riding mode, should be only one entity if teleportRules: TeleportRules is teleport_ride.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|inapplicability}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: ride: target: CommandSelector<Actor>

Specifies a mount.
Should be only one entity.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|inapplicability}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: rides: target: CommandSelector<Actor>

Specifies the mounts.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|inapplicability}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: teleportRules: TeleportRules: enum

Must be one of teleport_ride and teleport_rider.
Specified which entities are teleported. If unspecified, defaults to teleport_rider.
  1. REDIRECT Template:Edition

Template:Rcat: howToFill: FillType: enum

Must be one of if_group_fits and until_full.
  • If if_group_fits, checks whether all the riders can ride on the mount at the same time, and makes all of them ride the mount only if true.
  • If until_full or unspecified, makes them ride up one by one until the mount is full.
  1. REDIRECT Template:Edition

Template:Rcat: entityType: EntityType: enum

Specifies the entities to be summoned.
Must be an ID of an entity type.
  1. REDIRECT Template:Edition

Template:Rcat: spawnEvent: string: basic_string

Specifies the entity event for the to-be-summoned entities. Should be a Minecraft:spawn event (event name for entities in behavior pack).
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: nameTag: string: basic_string

Specifies the name of the to-be-summoned entities.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
  1. REDIRECT Template:Edition

Template:Rcat: rideRules: RideRules: enum

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

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|Any}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of entities that get riding on the targeted ride}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/... start_riding ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of entities that get dismounted}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/... stop_riding ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of entities that successfully evict their riders}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/... evict_riders ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of summoned entities that successfully ride on their linked rides}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/... summon_rider ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|the number of summoned entities that are successfully ridden by their linked riders}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/... summon_ride ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

Example

in Template:Editions, to ride and try to tame a skeleton horse in the same way as a regular Minecraft:horse:

  • /ride @s mount @e[type=minecraft:skeleton_horse,limit=1]

in Template:Editions, make yourself ride on the nearest arrow:

  • /ride @s mount @n[type=arrow]

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

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

in Template:Editions, 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

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

External links

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/ride ja:コマンド/ride pt:Comandos/ride ru:Команды консоли/ride zh:命令/ride