Difference between revisions of "TC-Coasters/Signs"
Bergerkiller (talk | contribs) |
Bergerkiller (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <languages/> | |
− | + | <translate> | |
− | [[TC-Coasters|« Go back]] | + | <!--T:1--> |
+ | [[Special:MyLanguage/TC-Coasters|« Go back]] | ||
+ | <!--T:2--> | ||
[[File:Tcc_signs_station.png|thumb|600px|Train rests on top of a wirelessly-controlled node station]] | [[File:Tcc_signs_station.png|thumb|600px|Train rests on top of a wirelessly-controlled node station]] | ||
− | [[TrainCarts/Signs|Traincarts has signs or sign actions]], which is a system to | + | <!--T:3--> |
+ | [[Special:MyLanguage/TrainCarts/Signs|Traincarts has signs or sign actions]], which is a system to control trains on the track. TC-Coasters track supports these same signs as well in three ways: | ||
* Signs placed at the designated rail block of the node(s) | * Signs placed at the designated rail block of the node(s) | ||
* Right-clicking a node with a sign item to assign signs to be activated | * Right-clicking a node with a sign item to assign signs to be activated | ||
* Using commands to add signs to nodes | * Using commands to add signs to nodes | ||
− | Signs created using all three methods support track switching and [[TrainCarts/PathFinding|path finding]]. Some signs which track metadata, like auto-spawner signs and detector signs, only work with real signs assigned to a rail block. | + | <!--T:4--> |
+ | Signs created using all three methods support track switching and [[Special:MyLanguage/TrainCarts/PathFinding|path finding]]. Some signs which track metadata, like auto-spawner signs and detector signs, only work with real signs assigned to a rail block. | ||
− | |||
− | |||
+ | == Rail Block Signs == <!--T:5--> | ||
+ | |||
+ | <!--T:6--> | ||
+ | [[File:Tcc_rail_block.png|thumb|400px|Rail Block for a node is set so it activates a [[Special:MyLanguage/TrainCarts/Signs/Destroyer|destroyer sign]]]] | ||
+ | |||
+ | <!--T:7--> | ||
While holding the TCC Editor Map in the off-hand with the ''Change Rail Block'' menu active, players can assign arbitrary blocks to be the so-called '''rail block''' for the node(s) selected. This is done by right-clicking on solid blocks to move the rail block there. All signs attached to this rail block, and the blocks below ('pillar'), will be activated when the train drives over the node the rail block is for. | While holding the TCC Editor Map in the off-hand with the ''Change Rail Block'' menu active, players can assign arbitrary blocks to be the so-called '''rail block''' for the node(s) selected. This is done by right-clicking on solid blocks to move the rail block there. All signs attached to this rail block, and the blocks below ('pillar'), will be activated when the train drives over the node the rail block is for. | ||
+ | <!--T:8--> | ||
The current rail block is displayed using a ghostly glass block (non-selected nodes) and golden block (selected nodes). | The current rail block is displayed using a ghostly glass block (non-selected nodes) and golden block (selected nodes). | ||
− | Signs respond to Redstone like normal. You can activate a [[TrainCarts/Signs/Spawner|spawner sign]] and spawn trains on the TC-Coasters track, stop and launch trains using [[TrainCarts/Signs/Station|stations]], and have conditional logic with [[TrainCarts/Signs/Switcher|switchers]]. | + | <!--T:9--> |
+ | Signs respond to Redstone like normal. You can activate a [[Special:MyLanguage/TrainCarts/Signs/Spawner|spawner sign]] and spawn trains on the TC-Coasters track, stop and launch trains using [[Special:MyLanguage/TrainCarts/Signs/Station|stations]], and have conditional logic with [[Special:MyLanguage/TrainCarts/Signs/Switcher|switchers]]. | ||
+ | <!--T:10--> | ||
By default the rail block is set to the block the node itself is at, and follows the node around. The ''Reset'' button will reset the rail block to that behavior. The x/y/z coordinate can be manually inputted using the dials, or alternatively the ''/tcc rail'' commands can be used: | By default the rail block is set to the block the node itself is at, and follows the node around. The ''Reset'' button will reset the rail block to that behavior. The x/y/z coordinate can be manually inputted using the dials, or alternatively the ''/tcc rail'' commands can be used: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 35: | Line 46: | ||
|} | |} | ||
− | == Node Signs == | + | |
+ | == Node Signs == <!--T:11--> | ||
+ | |||
+ | <!--T:12--> | ||
[[File:Tcc_signs_adding.png|thumb|400px|Player assigning a sign to a node]] | [[File:Tcc_signs_adding.png|thumb|400px|Player assigning a sign to a node]] | ||
+ | <!--T:13--> | ||
Rather than having to place sign blocks somewhere out of view, it is possible to assign invisible signs to be activated to the TC-Coasters track directly. Most TC signs are supported, and it includes a mechanism to activate the signs with commands, redstone or other signs. This makes it a lot easier when importing and exporting coasters, keeping everything self-contained. | Rather than having to place sign blocks somewhere out of view, it is possible to assign invisible signs to be activated to the TC-Coasters track directly. Most TC signs are supported, and it includes a mechanism to activate the signs with commands, redstone or other signs. This makes it a lot easier when importing and exporting coasters, keeping everything self-contained. | ||
− | === Permissions === | + | === Permissions === <!--T:14--> |
+ | |||
+ | <!--T:15--> | ||
Some permissions are required to work with some of the functionalities. By default these are all permissive, which can be changed in ''PermissionDefaults.yml'' or with a permission manager. In addition to these, players also need the general ''train.coasters.use'' permission. The permissions for creating the individual signs handled by Traincarts are also active. | Some permissions are required to work with some of the functionalities. By default these are all permissive, which can be changed in ''PermissionDefaults.yml'' or with a permission manager. In addition to these, players also need the general ''train.coasters.use'' permission. The permissions for creating the individual signs handled by Traincarts are also active. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 53: | Line 70: | ||
|} | |} | ||
− | === Power Channels === | + | |
+ | === Power Channels === <!--T:16--> | ||
+ | |||
+ | <!--T:17--> | ||
Similar to wireless redstone, TC-Coasters adds a mechanism to have signs power logic wirelessly using power channels. These are named channels with an on/off power state that can be assigned to signs to power them, or to be controlled from a sign as an output. | Similar to wireless redstone, TC-Coasters adds a mechanism to have signs power logic wirelessly using power channels. These are named channels with an on/off power state that can be assigned to signs to power them, or to be controlled from a sign as an output. | ||
+ | <!--T:18--> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 67: | Line 88: | ||
|} | |} | ||
− | ==== Transceiver sign ==== | + | |
+ | ==== Transceiver sign ==== <!--T:19--> | ||
+ | |||
+ | <!--T:20--> | ||
[[File:Tcc_signs_transceiver.png|thumb|400px|Transceiver sign controlling a power channel, as well outputting the channel state with a lever]] | [[File:Tcc_signs_transceiver.png|thumb|400px|Transceiver sign controlling a power channel, as well outputting the channel state with a lever]] | ||
+ | <!--T:21--> | ||
Besides commands, there is a TCC Power Transceiver sign. This sign can change a power channel's on/off state based on redstone power going into the sign, and toggles the lever based on the same state: | Besides commands, there is a TCC Power Transceiver sign. This sign can change a power channel's on/off state based on redstone power going into the sign, and toggles the lever based on the same state: | ||
+ | </translate> | ||
{{sign|[train]|tcc-power|channel_name|}} | {{sign|[train]|tcc-power|channel_name|}} | ||
+ | <translate> | ||
+ | <!--T:22--> | ||
Optionally a pulse delay can be put on the fourth line. Then when the sign is activated by redstone, it automatically turns off again after the timed delay. If left empty, it simply copies the input redstone state. This sign also supports the [!train] inversion logic of Traincarts, so you can invert the behavior of the sign. This also inverts the toggling behavior of the lever. | Optionally a pulse delay can be put on the fourth line. Then when the sign is activated by redstone, it automatically turns off again after the timed delay. If left empty, it simply copies the input redstone state. This sign also supports the [!train] inversion logic of Traincarts, so you can invert the behavior of the sign. This also inverts the toggling behavior of the lever. | ||
+ | <!--T:23--> | ||
The signs remain functional when in unloaded chunks, loading the chunk when state changes. | The signs remain functional when in unloaded chunks, loading the chunk when state changes. | ||
− | === Interactive Items === | + | |
+ | === Interactive Items === <!--T:24--> | ||
+ | |||
+ | <!--T:25--> | ||
Players can click on the nodes with a variety of items to configure the signs of a single node clicked. There is no need to hold or select nodes with the TCC Editor Map first. | Players can click on the nodes with a variety of items to configure the signs of a single node clicked. There is no need to hold or select nodes with the TCC Editor Map first. | ||
− | ==== Sign Item ==== | + | ==== Sign Item ==== <!--T:26--> |
− | Right-clicking a node with a sign opens up a sign editor dialog. In there the player can input the exact sign to add. Sneaking before right-clicking adds a sign 'below' the sign to extend the number of lines. The [[TrainCarts/Signs/Switcher|switcher sign]] uses this mechanism to extend the number of direction-statement rules. | + | |
+ | <!--T:27--> | ||
+ | Right-clicking a node with a sign opens up a sign editor dialog. In there the player can input the exact sign to add. Sneaking before right-clicking adds a sign 'below' the sign to extend the number of lines. The [[Special:MyLanguage/TrainCarts/Signs/Switcher|switcher sign]] uses this mechanism to extend the number of direction-statement rules. | ||
+ | <!--T:28--> | ||
Left-clicking a node with a sign removes the last-added or bottom sign from the node. | Left-clicking a node with a sign removes the last-added or bottom sign from the node. | ||
− | ==== Redstone Torch ==== | + | ==== Redstone Torch ==== <!--T:29--> |
+ | |||
+ | <!--T:30--> | ||
Right-clicking a node that has an assigned sign with a redstone torch will open a dialog to add a new '''input power channel'''. In this dialog the name of the channel can be inputted, after which it is added to the sign. The channel will power the sign from '''all sides''', and acts as a global on/off input. | Right-clicking a node that has an assigned sign with a redstone torch will open a dialog to add a new '''input power channel'''. In this dialog the name of the channel can be inputted, after which it is added to the sign. The channel will power the sign from '''all sides''', and acts as a global on/off input. | ||
− | Sneak-right-clicking will add a power channel to a directional face of the sign. This is important for signs that use this, like the [[TrainCarts/Signs/Station|station sign]]. | + | <!--T:31--> |
+ | Sneak-right-clicking will add a power channel to a directional face of the sign. This is important for signs that use this, like the [[Special:MyLanguage/TrainCarts/Signs/Station|station sign]]. | ||
+ | <!--T:32--> | ||
Left-clicking will remove the last-added input power channel again. | Left-clicking will remove the last-added input power channel again. | ||
− | ==== Lever ==== | + | ==== Lever ==== <!--T:33--> |
+ | |||
+ | <!--T:34--> | ||
[[File:Tcc_signs_conditional.png|thumb|200px|Power channel 'sw12empty' is controlled by the switcher, and activates the destroy sign. This destroys empty trains.]] | [[File:Tcc_signs_conditional.png|thumb|200px|Power channel 'sw12empty' is controlled by the switcher, and activates the destroy sign. This destroys empty trains.]] | ||
− | Right-clicking a node that has an assigned sign with a lever will open a dialog to add a new '''output power channel'''. In this dialog the name of the channel can be inputted, after which it is added to the sign. The sign will set the output channel the same way it would toggle a lever. For example, [[TrainCarts/Signs/Station|station signs]] toggle the channel on while a train is waiting on top, and [[TrainCarts/Signs/Switcher|switcher signs]] toggle it on when a matching train rides on top. | + | Right-clicking a node that has an assigned sign with a lever will open a dialog to add a new '''output power channel'''. In this dialog the name of the channel can be inputted, after which it is added to the sign. The sign will set the output channel the same way it would toggle a lever. For example, [[Special:MyLanguage/TrainCarts/Signs/Station|station signs]] toggle the channel on while a train is waiting on top, and [[Special:MyLanguage/TrainCarts/Signs/Switcher|switcher signs]] toggle it on when a matching train rides on top. |
+ | <!--T:35--> | ||
Left-clicking will remove the last-added output power channel again. | Left-clicking will remove the last-added output power channel again. | ||
− | === Commands === | + | |
+ | === Commands === <!--T:36--> | ||
+ | |||
+ | <!--T:37--> | ||
There is a rich set of commands to add, remove and modify signs and their power states. To use these, players must first select the nodes to modify with the TCC Editor Map. | There is a rich set of commands to add, remove and modify signs and their power states. To use these, players must first select the nodes to modify with the TCC Editor Map. | ||
+ | <!--T:38--> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
− | | /tcc sign add <line1> <line2> <line...> || Adds a sign with the given lines to the node(s). Lines may exceed 4 for behavior of having additional signs below the sign. | + | | /tcc sign add <line1> <line2> <line...> || Adds a sign with the given lines to the node(s). Lines may exceed 4 for behavior of having additional signs below the sign. If your lines contain spaces, you can quote the entire line.<br>For example: <code>/tcc sign add [+train] "launch 10s" "0.4 10.0"</code> |
|- | |- | ||
| /tcc sign remove || Removes the last-added sign of the selected nodes | | /tcc sign remove || Removes the last-added sign of the selected nodes | ||
Line 114: | Line 160: | ||
| /tcc sign scroll || Scrolls all signs one down, so that a different sign can be edited (power channels/removal) | | /tcc sign scroll || Scrolls all signs one down, so that a different sign can be edited (power channels/removal) | ||
|- | |- | ||
− | | /tcc power add <channel> || Assigns an input power channel. Initial powered state can be set with --powered, and face to power with --face. | + | | /tcc sign power add <channel> || Assigns an input power channel. Initial powered state can be set with --powered, and face to power with --face. |
|- | |- | ||
− | | /tcc power add st12_launch --face left || Assigns power channel 'st12_launch' to power the player-relative left face of the (station) sign. | + | | /tcc sign power add st12_launch --face left || Assigns power channel 'st12_launch' to power the player-relative left face of the (station) sign. |
|- | |- | ||
− | | /tcc power remove <channel> || Removes a previously-added input power channel from the last-added sign | + | | /tcc sign power remove <channel> || Removes a previously-added input power channel from the last-added sign |
|- | |- | ||
− | | /tcc power clear || Removes all previously-added input power channels from the last-added sign | + | | /tcc sign power clear || Removes all previously-added input power channels from the last-added sign |
|- | |- | ||
− | | /tcc power rotate || Advanced: rotates directional power inputs around 90 degrees. Useful after rotating a station. | + | | /tcc sign power rotate || Advanced: rotates directional power inputs around 90 degrees. Useful after rotating a station. |
|- | |- | ||
− | | /tcc output add st12_occupied || Controls a power channel output using the 'lever' output of a sign. Same set of commands as /tcc power. | + | | /tcc sign output add st12_occupied || Controls a power channel output using the 'lever' output of a sign. Same set of commands as /tcc power. |
|} | |} | ||
+ | </translate> |
Latest revision as of 14:30, 18 April 2024
Traincarts has signs or sign actions, which is a system to control trains on the track. TC-Coasters track supports these same signs as well in three ways:
- Signs placed at the designated rail block of the node(s)
- Right-clicking a node with a sign item to assign signs to be activated
- Using commands to add signs to nodes
Signs created using all three methods support track switching and path finding. Some signs which track metadata, like auto-spawner signs and detector signs, only work with real signs assigned to a rail block.
Rail Block Signs
While holding the TCC Editor Map in the off-hand with the Change Rail Block menu active, players can assign arbitrary blocks to be the so-called rail block for the node(s) selected. This is done by right-clicking on solid blocks to move the rail block there. All signs attached to this rail block, and the blocks below ('pillar'), will be activated when the train drives over the node the rail block is for.
The current rail block is displayed using a ghostly glass block (non-selected nodes) and golden block (selected nodes).
Signs respond to Redstone like normal. You can activate a spawner sign and spawn trains on the TC-Coasters track, stop and launch trains using stations, and have conditional logic with switchers.
By default the rail block is set to the block the node itself is at, and follows the node around. The Reset button will reset the rail block to that behavior. The x/y/z coordinate can be manually inputted using the dials, or alternatively the /tcc rail commands can be used:
Command | Description |
---|---|
/tcc rail set at <x> <y> <z> | Set all coordinates |
/tcc rail set x <x> | Set a single coordinate |
/tcc rail move ~ -1 | Move one block towards the player |
/tcc rail move ~ 1 | Move one block away from the player |
Node Signs
Rather than having to place sign blocks somewhere out of view, it is possible to assign invisible signs to be activated to the TC-Coasters track directly. Most TC signs are supported, and it includes a mechanism to activate the signs with commands, redstone or other signs. This makes it a lot easier when importing and exporting coasters, keeping everything self-contained.
Permissions
Some permissions are required to work with some of the functionalities. By default these are all permissive, which can be changed in PermissionDefaults.yml or with a permission manager. In addition to these, players also need the general train.coasters.use permission. The permissions for creating the individual signs handled by Traincarts are also active.
Permission | Description |
---|---|
train.coasters.signs | Modify and assign signs to nodes |
train.coasters.power.* | Modify all power channels |
train.coasters.power.zeta_spawner | Change the 'zeta_spawner' power channel |
Power Channels
Similar to wireless redstone, TC-Coasters adds a mechanism to have signs power logic wirelessly using power channels. These are named channels with an on/off power state that can be assigned to signs to power them, or to be controlled from a sign as an output.
Command | Description |
---|---|
/tcc power <channel> <action> | Change a power channel. Channel is the channel name, and action can be on/off/toggle/pulse. This command can be run from command blocks. |
/tcc power spawn_ch1 pulse 10 | Sets spawn_ch1 on for 10 ticks, then off again |
/tcc power player_enter on | Turns on the player_enter channel. |
Transceiver sign
Besides commands, there is a TCC Power Transceiver sign. This sign can change a power channel's on/off state based on redstone power going into the sign, and toggles the lever based on the same state:
Optionally a pulse delay can be put on the fourth line. Then when the sign is activated by redstone, it automatically turns off again after the timed delay. If left empty, it simply copies the input redstone state. This sign also supports the [!train] inversion logic of Traincarts, so you can invert the behavior of the sign. This also inverts the toggling behavior of the lever.
The signs remain functional when in unloaded chunks, loading the chunk when state changes.
Interactive Items
Players can click on the nodes with a variety of items to configure the signs of a single node clicked. There is no need to hold or select nodes with the TCC Editor Map first.
Sign Item
Right-clicking a node with a sign opens up a sign editor dialog. In there the player can input the exact sign to add. Sneaking before right-clicking adds a sign 'below' the sign to extend the number of lines. The switcher sign uses this mechanism to extend the number of direction-statement rules.
Left-clicking a node with a sign removes the last-added or bottom sign from the node.
Redstone Torch
Right-clicking a node that has an assigned sign with a redstone torch will open a dialog to add a new input power channel. In this dialog the name of the channel can be inputted, after which it is added to the sign. The channel will power the sign from all sides, and acts as a global on/off input.
Sneak-right-clicking will add a power channel to a directional face of the sign. This is important for signs that use this, like the station sign.
Left-clicking will remove the last-added input power channel again.
Lever
Right-clicking a node that has an assigned sign with a lever will open a dialog to add a new output power channel. In this dialog the name of the channel can be inputted, after which it is added to the sign. The sign will set the output channel the same way it would toggle a lever. For example, station signs toggle the channel on while a train is waiting on top, and switcher signs toggle it on when a matching train rides on top.
Left-clicking will remove the last-added output power channel again.
Commands
There is a rich set of commands to add, remove and modify signs and their power states. To use these, players must first select the nodes to modify with the TCC Editor Map.
Command | Description |
---|---|
/tcc sign add <line1> <line2> <line...> | Adds a sign with the given lines to the node(s). Lines may exceed 4 for behavior of having additional signs below the sign. If your lines contain spaces, you can quote the entire line. For example: /tcc sign add [+train] "launch 10s" "0.4 10.0"
|
/tcc sign remove | Removes the last-added sign of the selected nodes |
/tcc sign clear | Clears all signs added to the selected nodes |
/tcc sign scroll | Scrolls all signs one down, so that a different sign can be edited (power channels/removal) |
/tcc sign power add <channel> | Assigns an input power channel. Initial powered state can be set with --powered, and face to power with --face. |
/tcc sign power add st12_launch --face left | Assigns power channel 'st12_launch' to power the player-relative left face of the (station) sign. |
/tcc sign power remove <channel> | Removes a previously-added input power channel from the last-added sign |
/tcc sign power clear | Removes all previously-added input power channels from the last-added sign |
/tcc sign power rotate | Advanced: rotates directional power inputs around 90 degrees. Useful after rotating a station. |
/tcc sign output add st12_occupied | Controls a power channel output using the 'lever' output of a sign. Same set of commands as /tcc power. |