Difference between revisions of "Translations:TrainCarts/Commands/42/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
 
Line 9: Line 9:
 
| --train <名称>
 
| --train <名称>
 
| /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*]
| 通过名称选中列车。支持[[TrainCarts/Commands/Selectors|''@train'' 选择器]]代替名称,这样你可以一次选中多辆列车。
+
| 通过名称选中列车。支持[[Special:MyLanguage/TrainCarts/Commands/Selectors|''@train'' 选择器]]代替名称,这样你可以一次选中多辆列车。
 
|-
 
|-
 
| --nearest
 
| --nearest

Latest revision as of 00:16, 26 September 2024

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 [[Special:MyLanguage/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.
|}

目标标签

你可以不先选中矿车,你还可以使用以下的任何标签直接定位到列车。这些标签也可以在命令方块中使用。

标签 示例 描述
--train <名称> /train maxspeed 0.0 --train train12
/train maxspeed --train @train[name=intercity*]
通过名称选中列车。支持@train 选择器代替名称,这样你可以一次选中多辆列车。
--nearest /train maxspeed 0.0 --nearest 选中离命令执行者最近的列车,最远 128 格方块距离。
--near <x> <y> <z> <范围> /train maxspeed 0.0 --near ~ ~ ~ 5 选中离指定坐标最近的列车,可自定义最远范围。
--cart <索引 或 实体uuid> /cart destroy --nearest --cart 0 选择前方的一个矿车。索引从 0 开始是前方第一个,1 是前方第二个,以此类推。单词 'head'(头部)和 'tail'(尾部)可用于选择开头和末尾的一个矿车。要选择矿车所在的列车可以通过其他标签来选定,否则将使用玩家当前正在编辑的列车。
--world <世界名称> /train destroy --world world_nether --near 2 66 -134 1.5 默认情况下,该标签仅针对命令执行者所在的世界。该标签可以指定不同的世界。从服务器控制台执行命令时需要使用该标签。