Export translations
Jump to navigation
Jump to search
Settings
Group
Main Page
Map Display
Map Display/API
MyWorlds
MyWorlds/ManagingWorlds
SignLink
TC-Coasters/Signs
TC-Coasters/Track-Objects
TrainCarts
TrainCarts/ActionBlocks
TrainCarts/API
TrainCarts/API/SignAction
TrainCarts/Attachments
TrainCarts/Attachments/Appearance
TrainCarts/Attachments/Entity
TrainCarts/Attachments/General
TrainCarts/Attachments/Item
TrainCarts/Attachments/Model
TrainCarts/Attachments/Physical
TrainCarts/Attachments/Seat
TrainCarts/Attachments/Sequence/PianoRoll
TrainCarts/Attachments/Sequencer
TrainCarts/Attachments/Sequencer/PianoRoll
TrainCarts/Attachments/Sound
TrainCarts/Commands
TrainCarts/Commands/Selectors
TrainCarts/Lag
TrainCarts/MobEntering
TrainCarts/PathFinding
TrainCarts/Permissions
TrainCarts/Physical
TrainCarts/Signs
TrainCarts/Signs/Animate
TrainCarts/Signs/Announce
TrainCarts/Signs/BlockChanger
TrainCarts/Signs/Blocker
TrainCarts/Signs/Crafter
TrainCarts/Signs/Destination
TrainCarts/Signs/Destroyer
TrainCarts/Signs/Detector
TrainCarts/Signs/Direction
TrainCarts/Signs/Effect
TrainCarts/Signs/Ejector
TrainCarts/Signs/Elevator
TrainCarts/Signs/Enter
TrainCarts/Signs/Items
TrainCarts/Signs/Launcher
TrainCarts/Signs/Mutex
TrainCarts/Signs/Property
TrainCarts/Signs/Skip
TrainCarts/Signs/Sound
TrainCarts/Signs/Spawner
TrainCarts/Signs/Statements
TrainCarts/Signs/Station
TrainCarts/Signs/Switcher
TrainCarts/Signs/Teleporter
TrainCarts/Signs/Ticket
TrainCarts/Signs/Transfer
TrainCarts/Signs/Trigger
TrainCarts/Signs/Waiter
TrainCarts/Spawning
TrainCarts/Tickets
TrainCarts/Train Spawn Chest
TrainCarts/TrainProperties
TrainCarts/VanillaMinecarts
Language
aa - Afar
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
ak - Akan
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bcl - Central Bikol
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Turkish
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - español (formal)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
ff - Fulah
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gag - Gagauz
gan - Gan Chinese
gan-hans - Gan (Simplified)
gan-hant - Gan (Traditional)
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
ht - Haitian Creole
hu - Hungarian
hu-formal - magyar (formal)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Maori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mni - Manipuri
mnw - Mon
mo - Moldovan
mr - Marathi
mrj - Western Mari
ms - Malay
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
niu - Niuean
nl - Dutch
nl-informal - Nederlands (informeel)
nn - Norwegian Nynorsk
no - Norwegian
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nys - Nyungar
oc - Occitan
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
sa - Sanskrit
sah - Sakha
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - себертатар
su - Sundanese
sv - Swedish
sw - Swahili
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tn - Tswana
to - Tongan
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yue - Cantonese
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Fetch
<languages/> <div lang="en" dir="ltr" class="mw-content-ltr"> [[Special:MyLanguage/TrainCarts/Signs|« Go back]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Introduction == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Switcher signs can read information from the train or cart above and toggle a lever and rails based on that. It also marks the switchable nodes of the [[Special:MyLanguage/TrainCarts/PathFinding|path finding]] routing network. This makes this multi-purpose sign important for routing trains to their destinations, whether using path finding or otherwise. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Levers connected to the base block of the sign are toggled down when conditions match. When the sign is powered, the track above is also switched towards the statement-assigned direction when the condition matches. When the switcher sign is powered by redstone, or by using [+train], then it will switch the track based on the statements on the sign. This can cause trains to reverse on straight rail sections. If the sign is used primarily to toggle a lever when the statement conditions match, then [-train] should be used so this does not happen. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> By default only powered switcher signs switch the track using [[Special:MyLanguage/TrainCarts/PathFinding|path finding]] logic. This can be changed in Traincart's ''config.yml'' as part of legacy support, as in past versions this was not the case. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Syntax == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''First line:''' ''[-train]'' to toggle only the lever based on the conditions, ''[+train]'' or other modes for switching the track </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Second line:''' ''switcher'' or ''tag'' </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Third line:''' ''The [[Special:MyLanguage/TrainCarts/Signs/Statements|statement]] for when to switch the track left (if no direction prefix is specified)'' </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Fourth line:''' ''The [[Special:MyLanguage/TrainCarts/Signs/Statements|statement]] for when to switch the track right (if no direction prefix is specified)'' </div> {{sign|[train]|switcher|t@mytag|r:default}} <div lang="en" dir="ltr" class="mw-content-ltr"> For [[Special:MyLanguage/TrainCarts/Signs/Statements|statements]] it can read cart tags, destination, passengers, items and several other states. It is also possible to sort the carts when using numeric values on the last two lines. This way you can make 1 train or cart go left out of every 3 trains or carts. The ''default'' statement is unique, in that it will only be true if no other statement on the sign is true, regardless of order. They are evaluated top to bottom. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Direction Prefixes === Statements can include a direction prefix to the left, such as ''l:'' or ''f:'', to define where to send the train when the statement condition is true. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Statements === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> On the third and fourth lines you can put the statements to evaluate. You can insert a [[Special:MyLanguage/TrainCarts/Signs/Direction|direction]] followed up by ''':''' and then the statement to set the direction to switch to. For example: </div> {{sign|[!train]|switcher|1:<trainsize>|r:i@wood}} <div lang="en" dir="ltr" class="mw-content-ltr"> Will send all trains larger than 5 carts to the left, and trains with wood in storage minecarts to the right. It parses the statements from top to bottom, so wood-bearing trains larger than 5 carts are also sent to the left. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Switcher signs currently support wildcards only when matching to tags and player names (but not, for example, to train names). </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Statement Continuation === Statements continue on signs below, provided they are all prefixed by a direction. Otherwise they will be ignored by the switcher sign. If you are not switching the track and only want a lever to be toggled, then you can use any direction prefix here, such as ''f:'' - it will have no effect in that case. The [[#Redstone powered switcher|Redstone powered switcher]] example down below uses this feature. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Functions == === As a detector === The switcher sign toggles a lever in addition to switching track. By using [-train] track switching can be disabled so that the switcher sign only toggles the lever. This can then be used to automatically detect changes in the train above, for example, when players enter the train. </div> {{sign|[-train]|switcher|passengers|}} <div lang="en" dir="ltr" class="mw-content-ltr"> === Switching without train === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> To change the rails when triggered by redstone, without requiring a train to enter the rails first, both from and to directions can be specified. For example: </div> {{sign|[+train]|switcher|n-e:redstone|n-w:default}} <div lang="en" dir="ltr" class="mw-content-ltr"> Will switch the rails north-east when powered by redstone, and north-west otherwise. This also works with TC-Coasters, by specifying the junction names ( 1-2:redstone ) </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Path finding === </div> {{sign|[+train]|switcher}} <div lang="en" dir="ltr" class="mw-content-ltr"> The switcher sign is also used during [[Special:MyLanguage/TrainCarts/PathFinding|path finding]]. If a train or cart has a destination set, and no statements on the sign match (or no statements were set), it will toggle the rails to make the train go to the requested destination. If you need to force an alternative route or need to send 'passing through' trains around, add a statement on this sign to do so. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Sorter === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> If you need to sort carts onto multiple tracks, you can use an internal counter: </div> {{sign|[+train]|switcher|3|4}} <div lang="en" dir="ltr" class="mw-content-ltr"> Right now it will send 3 trains to the left and then 4 trains to the right direction, after which the cycle repeats itself. You can put multiple switcher signs in line to equally divide the trains onto multiple tracks. This is shown in the video below: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> https://www.youtube.com/watch?v=8KCfenk3Vi8 </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Splitting trains === A train can be split at an arbitrary cart using a [+cart] switcher. This will switch halfway the train sending each section of the train in a different direction. Instead of fixed number (1 cart left, 1 cart right) a percentage can be used (50%) which will split the train in half, regardless of train cart count. {{sign|[+cart]|switcher|50%|50%}} </div> <div lang="en" dir="ltr" class="mw-content-ltr"> == Examples == === Redstone powered switcher === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> By using the redstone statements on the sign, you can completely control what direction to send the train to: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> [[File:TrainCarts Redstone Switcher.png|600px|3-way redstone switcher]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Automatic launching === By using a <code>[-train]</code> passengers switcher sign, the lever is automatically toggled down once a player enters the train. This signal activates an inverted station sign, causing the train to launch into the opposite side that is powered. In this setup this launches the train left once a player enters. A redstone repeater delay can be used to debounce this. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> [[File:Tc_switcher_station.png|600px|Switcher sign lever powers the station to automatically launch the train]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Cart splitter === By using a <code>[+cart]</code> switcher sign using the counter syntax, a long train can be split into individual carts. Each cart is sent onto one of three tracks, equally. The extra sign below the cart switcher sign extends the number of switching rules. Statements: <code>l:1 r:1 f:1</code> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> [[File:Tc_cart_switcher_sorter.png|600px|Cart switcher sign splits a train into individual carts onto three lanes]] </div>
Navigation menu
Personal tools
English
Log in
Dark mode
Namespaces
Special page
Variants
Views
More
Search
Navigation
Main page
Recent changes
Plugins
BKCommonLib
TrainCarts
TC-Coasters
MyWorlds
Maplands
BergerHealer Links/Contact
Discord
Spigot
GitHub
Paste site
Tools
Special pages
Printable version