RailSwitch: Difference between revisions

Shoehorn link to Rail Mechanics
m (Added a buncha categories)
(Shoehorn link to Rail Mechanics)
 
(6 intermediate revisions by 2 users not shown)
Line 1:
{{Mechanics series}}
'''RailSwitch''' (also known as "'''The /dest Plugin'''") is a rail transport plugin used([https://github.com/CivMC/RailSwitch onsource]) somethat Civ servers such asenhances [[CivClassicRail 2.0|CivClassicsMechanics]] andallowing [[CivRealmsautomated 2.0|CivRealms]],routing itacross allowsrail lines someoneaccording to set a specified destination when using rails. The plugin works by using the redstone mechanics of [https://minecraft.gamepedia.com/Rail#Placement T-junction], which follows the [https://minecraft.gamepedia.com/South-east_rule South-east rule], interaction with [https://minecraft.gamepedia.com/Detector_Rail detector rails]. The plugin allows the detector rail to send a redstone signal only if the person in the minecart chose the right destination. This plugin can '''only work in one direction''' as the player has to arrive from a certain direction. Also, it can only choose between two destinations for a total of three rail directions : one starting point and two destinations.
 
= Usage =
Line 6 ⟶ 7:
== Block placement ==
A sign with the destination name on it must be placed over a detector rail and reinforced under the same group. The sign first line must be <code>[destination]</code>, then the other three lines can be destination names. They have to be placed before the T-junction. You may also use <code>[!destination]</code>, which will activate the rail if a player's destination is not on the signs.<ref name=":0" />
 
<center>
{|
Line 15 ⟶ 17:
 
== Interaction ==
Upon passing on the detector rail, the redstone signal will activate only if the player on the minecart chose a direction written on the sign. If it's the case, the detector rail will send a signal which will allow the T-junction to change direction, thosethus allowing the player to chose a direction. In the example on the right, if the player had the mall set has their destination, the detector would send a redstone signal which would change the T-junction orientation, thosethus sending the player to the mall. If the player had an otheranother destination setup, the detector rail won't send a redstone signal, and the player would continue straight up as per the normal T-junction rules.
[[File:RailSwitchRailChanging.png|thumb|When the redstone signal is sent, the T-junction change direction]]
Additionally, the destination <code>*</code> is a special case, which activates the detector rail if the player has any destination set, which can be used to redirect rogue carts and players who've forgotten to set their destination.
 
== Direction of the rail ==
Line 34 ⟶ 37:
== References ==
<references />
[[Category:CivClassic 2.0Transportation]]
 
[[Category:CivRealms 2.0]]
{{Template:Mechanics}}
[[Category:Good Article]]
302

edits