TrainCarts/Commands/42 [zh-mo]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "=== 目标标签 === 除了以上的选中方式,使用以下的任一标签也可直接选中列车。这些标签同样可在命令方块中使用。 {| class="wikitable" |- ! style="width: 15%" | 标签 ! style="width: 25%" | 示例 ! 描述 |- | --train <名称> | /train maxspeed 0.0 --train train12<br>/train maxspeed --train @train[name=intercity*] | 通过名称选中列车。支持''@train'' 选择器代替名...")
 
(No difference)

Latest revision as of 07:10, 26 November 2025

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 默認情況下,該標籤僅針對命令執行者所在的世界。該標籤可以指定不同的世界。從伺服器控制台執行命令時需要使用該標籤。