/Signs
TC可以通过使用告示牌来为列车或单个矿车执行操作。
结构与行为
控制牌的格式始终遵循统一的结构。首行需标注cart或train,用于指定控制对象是单个矿车还是整条列车。随后可选择性设置控制牌对红石信号的响应方式,以及接收红石信号的方向(此方向即为矿车驶出的方向)。
红石
控制牌需通过红石信号激活使用。如果不使用红石来激活控制牌,它就只是一个普通的告示牌。如果不想红石来激活且控制牌依然能够运行,可将告示牌的第一行改为[+train]。
| 第一行 | 释义 |
|---|---|
| [train] | 默认模式。当使用红石信号激活时才会运作。 |
| [+train] | 激活模式。控制牌会一直运作,无需红石信号激活。 |
| [!train] | 反转模式。类似于非门,被红石信号激活时不运作,无信号时运作,无红石信号激活时工作状态与[+train]相同。 |
| [-train] | 无法充能模式。控制牌不接受红石信号。该功能只适用于转辙器。 |
| [/train] | 上升沿模式。控制牌只会在红石信号由关到开时工作一次,不会对经过的列车作出反应。 |
| [\train] | 下降沿模式。控制牌只会在红石信号由开到关时工作一次,不会对经过的列车作出反应。 |
| [/\train] | 双边沿模式。控制牌在红石信号切换激活和不激活时工作一次,不会对经过的列车作出反应。 |
拉杆输出
控制牌可切换拉杆来间接输出红石信号并激活其他相邻的控制牌。只有少数类型的控制牌才具有此功能,例如列车停在车站牌上方时就会切换拉杆。
激活方向
默认情况下,列车只有能看到控制牌的正面或侧面时,该控制牌才能对列车生效。因此,要使控制牌起效,控制牌应当面对矿车驶来的方向。要覆盖此功能,你可以在第一行添加“:”(英文冒号),后跟一个或多个方向参数。如果你想让控制牌在所有方向上都能生效,可使用通配符,用法:[train:*]。
示例:某道岔牌上写入[-train:lr],当列车从左侧或右侧进入时,控制牌会切换左侧和右侧的拉杆,使其进入激活状态,而其他方向的拉杆不作反应。此控制牌使用-train来关闭道岔牌切换铁轨的功能。
远程控制
少数类型的控制牌支持远程控制:通过名称控制列车。用法:[train <名称>],或使用缩写 [t <名称>]。远程控制牌仅对红石信号的开关变化作出反应,因此放置的位置并不重要。类型表列出的是支持远程控制的控制牌。
远程控制可操作多辆列车。与标签相同,远程控制使用“*”来表示要操作的列车。例如,下面的控制牌会将所有名为“intercity”的列车的目的地设置为home:
你可以用它来轻松调用所有列车。如果你使用标签来调度列车,你也可以添加新标签来让列车返回。
Placement
Each sign targets a certain track piece above. Signs attached to walls take the block they are attached to and look up until they find a piece of track. That track is then used for that sign. Sign posts look up until they find a piece of track. There may not be blocks without signs between the bottom sign and the tracks.
You can make a pillar of blocks below a single track piece and attach signs to it, to make a bundle of actions on a single track piece. Trains look down when they enter a new track piece to check for signs, so make sure you put the output signs above the signs that use this output for correct results.
A noticeable exception would be add-ons for the TrainCart plugin, which may change the (relative) position a sign would need to be placed on in order to work for the track. For example, would the TC Hang Rail add-on require you to add the signs above the Hang rail track to work, while the TCC (TrainCarts Coasters) add-on uses the block of a node for the sign, which can be moved to any other block.
For most signs the sign direction influences what happens, as also discussed earlier (Activation Direction):
- 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.


