/Signs
(Created page with "使用TrainCarts自身的附加插件时需要注意,因为它们可能会改变控制牌生效的(相对)位置。例如,'''TC Hang Rail'''(悬挂轨道)要求将控制牌放置在悬挂轨道的上方;而'''TCC(TrainCarts Coasters)'''将节点所在的方块作为控制牌的附着点,且该节点可被移动至任意其他方块。") |
(Created page with "对于大多数控制牌来说,控制牌的'''方向'''会影响事件,比如上文所述的'''激活方向''':") |
||
| Line 59: | Line 59: | ||
使用TrainCarts自身的附加插件时需要注意,因为它们可能会改变控制牌生效的(相对)位置。例如,'''TC Hang Rail'''(悬挂轨道)要求将控制牌放置在悬挂轨道的上方;而'''TCC(TrainCarts Coasters)'''将节点所在的方块作为控制牌的附着点,且该节点可被移动至任意其他方块。 | 使用TrainCarts自身的附加插件时需要注意,因为它们可能会改变控制牌生效的(相对)位置。例如,'''TC Hang Rail'''(悬挂轨道)要求将控制牌放置在悬挂轨道的上方;而'''TCC(TrainCarts Coasters)'''将节点所在的方块作为控制牌的附着点,且该节点可被移动至任意其他方块。 | ||
对于大多数控制牌来说,控制牌的'''方向'''会影响事件,比如上文所述的'''激活方向''': | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Revision as of 03:28, 6 November 2025
TC可以通过使用告示牌来为列车或单个矿车执行操作。
结构与行为
控制牌的格式始终遵循统一的结构。首行需标注cart或train,用于指定控制对象是单个矿车还是整条列车。随后可选择性设置控制牌对红石信号的响应方式,以及接收红石信号的方向(此方向即为矿车驶出的方向)。
红石
控制牌需通过红石信号激活使用。如果不使用红石来激活控制牌,它就只是一个普通的告示牌。如果不想红石来激活且控制牌依然能够运行,可将告示牌的第一行改为[+train]。
| 第一行 | 释义 |
|---|---|
| [train] | 默认模式。当使用红石信号激活时才会运作。 |
| [+train] | 激活模式。控制牌会一直运作,无需红石信号激活。 |
| [!train] | 反转模式。类似于非门,被红石信号激活时不运作,无信号时运作,无红石信号激活时工作状态与[+train]相同。 |
| [-train] | 无法充能模式。控制牌不接受红石信号。该功能只适用于转辙器。 |
| [/train] | 上升沿模式。控制牌只会在红石信号由关到开时工作一次,不会对经过的列车作出反应。 |
| [\train] | 下降沿模式。控制牌只会在红石信号由开到关时工作一次,不会对经过的列车作出反应。 |
| [/\train] | 双边沿模式。控制牌在红石信号切换激活和不激活时工作一次,不会对经过的列车作出反应。 |
拉杆输出
控制牌可切换拉杆来间接输出红石信号并激活其他相邻的控制牌。只有少数类型的控制牌才具有此功能,例如列车停在车站牌上方时就会切换拉杆。
激活方向
默认情况下,列车只有能看到控制牌的正面或侧面时,该控制牌才能对列车生效。因此,要使控制牌起效,控制牌应当面对矿车驶来的方向。要覆盖此功能,你可以在第一行添加“:”(英文冒号),后跟一个或多个方向参数。如果你想让控制牌在所有方向上都能生效,可使用通配符,用法:[train:*]。
示例:某道岔牌上写入[-train:lr],当列车从左侧或右侧进入时,控制牌会切换左侧和右侧的拉杆,使其进入激活状态,而其他方向的拉杆不作反应。此控制牌使用-train来关闭道岔牌切换铁轨的功能。
远程控制
少数类型的控制牌支持远程控制:通过名称控制列车。用法:[train <名称>],或使用缩写 [t <名称>]。远程控制牌仅对红石信号的开关变化作出反应,因此放置的位置并不重要。类型表列出的是支持远程控制的控制牌。
远程控制可操作多辆列车。与标签相同,远程控制使用“*”来表示要操作的列车。例如,下面的控制牌会将所有名为“intercity”的列车的目的地设置为home:
你可以用它来轻松调用所有列车。如果你使用标签来调度列车,你也可以添加新标签来让列车返回。
放置
控制牌会在当前位置向上寻找铁轨作为控制对象。而放置在方块侧面的控制牌会在附着方块的位置向上寻找铁轨作为控制对象。控制牌柱同样是向上寻找铁轨,但位置更下的控制牌和铁轨之间必须要有控制牌附着的方块。
可以在单个铁轨下方搭一个方块柱子,在柱子侧面放置多个控制牌,这样就能在一个铁轨上执行多个操作。列车进入该铁轨时按从上到下的顺序执行控制牌,因此,若有输出红石信号的控制牌,请尽可能将其放置在最上方,确保依赖该红石信号的其他控制牌可以正常运作。
使用TrainCarts自身的附加插件时需要注意,因为它们可能会改变控制牌生效的(相对)位置。例如,TC Hang Rail(悬挂轨道)要求将控制牌放置在悬挂轨道的上方;而TCC(TrainCarts Coasters)将节点所在的方块作为控制牌的附着点,且该节点可被移动至任意其他方块。
对于大多数控制牌来说,控制牌的方向会影响事件,比如上文所述的激活方向:
- The train has to face the text on the sign to make the sign respond
- Signs with the same alignment as the tracks (faces to or away from the tracks) always respond
- The train is spawned in the direction the sign faces
Types
| Sign | Description | Remote Control |
|---|---|---|
| Animate | play an animation configured in the train's attachments | Yes |
| Announce | sends a message to players in the cart and/or train above | Yes |
| Blocker | blocks trains coming from a certain direction | No |
| Block Changer | change the block types displayed in a minecart | Yes |
| Craft | crafts items inside the storage minecarts of a train using a nearby workbench | No |
| Destination | marks a destination for the path finding and sets the next destination for the train | Yes |
| Destroy | destroy trains | Yes |
| Detector | detect trains on a set region of rails | No |
| Effect | plays a particle or sound effect at the minecart, train or sign | Yes |
| Eject | eject trains (let passengers exit) | Yes |
| Elevator | teleports trains including passengers up and down to another elevator | No |
| Enter | lets nearby players and/or mobs enter the train | Yes |
| Flip | Lets you flip a cart 180 degrees | Yes |
| Launcher | launch or brake trains to start moving at a desired speed | Yes |
| (Smart) Mutex | prevents train collisions at intersections by blocking multiple trains from entering the same area | No |
| Property | set properties on the train such as tags, destinations, enter/exit toggle and more | Yes |
| Skip | skips execution of signs up ahead based on statements | Yes |
| Sound | plays a named sound effect | Yes |
| Spawn | spawn an entire train, cart types can be set | No |
| Station | stop and launch trains | No |
| Switcher | switch levers and rails based on properties on the train | No |
| Teleport | teleport trains including passengers (requires MyWorlds) | Yes |
| Transfer | transfer items between trains and chests/furnaces/dispensers | No |
| Trigger | display train information and a countdown of the arrival time of trains on signs (requires SignLink) | No |
| Ticket | let passengers pay for a ride (requires Vault) | No |
| Waiter | waits the train until the track is clear of other trains | No |
Permissions
Each sign has a separate build permission. See the main permissions page. For using remote control, the player requires the train.build.feature.remotecontrol permission which is OP-only by default.


