Mods/TrainCarts/Signs

= Action signs = You can use signs to perform special actions with trains. All these signs have [train] or [cart] on the first line and require redstone power to function. If you want to invert the redstone power, this way not requiring any external redstone power at all, you can put an exclamation mark in front of train or cart: [!train] [!cart]. If you want the sign to not respond to redstone power at all, and simply want it active at all times, you can put a plus sign in front of the name [+train] [+cart]. This is especially useful when you use the redstone statement in the switcher signs.

When [train] is used, the sign targets the entire train above this sign. When [cart] is used, the sign targets only the cart that is currently above this sign.

Certain signs toggle a lever as well, you can use this output to change the outcome of other signs. For example, you can combine an unpowered track switcher with a destroy sign to remove carts or trains with certain characteristics.

Since v1.66 you can now set what directions trigger the sign, by adding a : after train or cart followed up by the direction. For example, [!train:lr] will invert redstone power, while being triggered by trains coming from the left and right. For a full list of directions, see here.

Remote Control
A few sign systems support remote control: the ability to control trains by name. You then use the [train ] format, or the shorter alias [t ]. Remotely controlled signs only respond to redstone changes, thus where you place them is not important. So far the property, destination, destroy and eject sign systems support remote control.

Remote control can also affect multiple trains. Just like the tag system, remote control uses *-signs to identify the trains to affect. For example, the following remote control sign will set the destination to home for all intercity trains:

You can use this to recall all your trains easily. If you use tags to navigate trains, you can also add a tag saying that the train should return. Remote control signs only respond to redstone changes.

= 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.

For most signs the sign direction influences what happens:


 * 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

 * Destroyer - destroy trains
 * Ejector - eject trains (let passengers exit)
 * Enter - lets nearby players and/or mobs enter the train
 * Blocker - blocks trains coming from a certain direction
 * Station - stop and launch trains
 * Launcher - launch or brake trains to start moving at a desired speed
 * Property - set properties on the train such as tags, destinations and owners
 * Block Changer - change the block types displayed in a minecart
 * Switcher - switch levers and rails based on properties on the train
 * Detector - detect trains on a set region of rails
 * Transfer - transfer items between trains and chests/furnaces/dispensers
 * Crafter - crafts items inside the storage minecarts of a train using a nearby workbench
 * Elevator - teleports trains including passengers up and down to another elevator
 * Teleporter - teleport trains including passengers (requires MyWorlds)
 * Spawner - spawn an entire train, cart types can be set
 * Trigger - display train information and a countdown of the arrival time of trains on signs (requires SignLink)
 * Destination - marks a destination for the path finding and sets the next destination for the train
 * Announce - sends a message to players in the cart and/or train above
 * Waiter - waits the train until the track is clear of other trains
 * Effect - plays a particle or sound effect at the minecart, train or sign
 * Ticket - let passengers pay for a ride (requires Essentials Economy)

To-do
= Permissions =

Each sign has a separate build permission. Below the permission nodes for the above sign types: