Difference between revisions of "Translations:TrainCarts/Commands/42/en"

From BergerHealer Wiki
Jump to navigation Jump to search
(Importing a new version from external source)
 
(Importing a new version from external source)
 
Line 9: Line 9:
 
| --train <name>
 
| --train <name>
 
| /train maxspeed 0.0 --train train12<br>/train maxspeed --train @train[name=intercity*]
 
| /train maxspeed 0.0 --train train12<br>/train maxspeed --train @train[name=intercity*]
| Selects a train by name. Supports the [[TrainCarts/Commands/Selector|''@train'' selector]] in place of the name, with which you can target more than one train at a time.
+
| Selects a train by name. Supports the [[TrainCarts/Commands/Selectors|''@train'' selector]] in place of the name, with which you can target more than one train at a time.
 
|-
 
|-
 
| --nearest
 
| --nearest

Latest revision as of 19:31, 20 August 2022

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (TrainCarts/Commands)
=== Targeting Flags ===
Instead of first selecting a cart to modify, you can use any of the following flags to target trains directly. These also work in Command Blocks.
{| class="wikitable"
|-
! style="width: 15%" |  Flag
! style="width: 25%" | Example
! Description
|-
| --train <name>
| /train maxspeed 0.0 --train train12<br>/train maxspeed --train @train[name=intercity*]
| Selects a train by name. Supports the [[TrainCarts/Commands/Selectors|''@train'' selector]] in place of the name, with which you can target more than one train at a time.
|-
| --nearest
| /train maxspeed 0.0 --nearest
| Selects the nearest train to the sender. At most 128 blocks away.
|-
| --near <x> <y> <z> <distance>
| /train maxspeed 0.0 --near ~ ~ ~ 5
| Selects the nearest train near to the coordinates specified, at most distance away
|-
| --cart <index or entity_uuid>
| /cart destroy --nearest --cart 0
| Selects a single cart from the front. Index 0 is the front, 1 second from front, etc. The words 'head' and 'tail' can also be used to select the first or last cart. The train of which to select the carts can be selected with the other flags, otherwise the train the player is currently editing is used.
|-
| --world <worldname>
| /train destroy --world world_nether --near 2 66 -134 1.5
| By default flags only target the world the sender is on. With this, a different world can be specified. Is required when running commands from the server terminal.
|}

Targeting Flags

Instead of first selecting a cart to modify, you can use any of the following flags to target trains directly. These also work in Command Blocks.

Flag Example Description
--train <name> /train maxspeed 0.0 --train train12
/train maxspeed --train @train[name=intercity*]
Selects a train by name. Supports the @train selector in place of the name, with which you can target more than one train at a time.
--nearest /train maxspeed 0.0 --nearest Selects the nearest train to the sender. At most 128 blocks away.
--near <x> <y> <z> <distance> /train maxspeed 0.0 --near ~ ~ ~ 5 Selects the nearest train near to the coordinates specified, at most distance away
--cart <index or entity_uuid> /cart destroy --nearest --cart 0 Selects a single cart from the front. Index 0 is the front, 1 second from front, etc. The words 'head' and 'tail' can also be used to select the first or last cart. The train of which to select the carts can be selected with the other flags, otherwise the train the player is currently editing is used.
--world <worldname> /train destroy --world world_nether --near 2 66 -134 1.5 By default flags only target the world the sender is on. With this, a different world can be specified. Is required when running commands from the server terminal.