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
{{DISPLAYTITLE:TrainCarts/控制牌/转辙器}}<languages/> [[Special:MyLanguage/TrainCarts/Signs|« 返回]] == 介绍 == <div class="mw-translate-fuzzy"> 转辙器可以读取上方列车或矿车的信息,并以此判断来切换拉杆和铁轨。它还标记了[[TrainCarts/PathFinding|路线查找]]路由网络的切换节点。这使得转辙器对于将列车调度到目的地来说非常重要,无论是使用路线查找还是其他方式。 </div> 当条件匹配时,附着在与转辙器相同方块的拉杆会被切换为开启状态。当转辙器处于工作状态且条件匹配时,上方的铁轨也会切换到语句指定的方向。当转辙器被红石激活或使用 [+train] 时,转辙器将根据语句切换铁轨。这可能会导致列车在直行轨道上倒车。如果只想让转辙器在语句条件匹配时只切换拉杆,则应使用 [-train] 以避免发生这种情况。 <div class="mw-translate-fuzzy"> 默认情况下,只有激活的转辙器才能根据[[TrainCarts/PathFinding|路线查找]]逻辑来切换铁轨。这可以在 TC 的 ''config.yml'' 文件中进行修改(部分旧版本支持),因为在过去的版本中情况并非如此。 </div> == 语法 == '''第一行:'''''[-train]'' 只根据条件来切换拉杆,''[+train]'' 或其他模式会切换铁轨。 '''第二行:''' ''switcher'' 或 ''tag''。 '''第三行:'''''何时向左切换轨道的[[Special:MyLanguage/TrainCarts/Signs/Statements|语句]](如果没有定义方向前缀)''。 '''第四行:'''''何时向右切换轨道的[[Special:MyLanguage/TrainCarts/Signs/Statements|语句]](如果没有定义方向前缀)''。 {{sign|[train]|switcher|t@mytag|r:default}} [[Special:MyLanguage/TrainCarts/Signs/Statements|语句]]可以读取矿车的标签、目的地、乘客、物品和其他状态。在最后两行使用数值时,也可以对矿车进行排序。按照这个逻辑你可以实现每 3 辆列车/矿车就有 1 辆列车/矿车发往不同的方向,''default'' 语句是唯一的,因为只有当转辙器上的其他语句都为 false 时,它才会为 true,无论顺序如何。语句从上到下进行判定。 === 方向前缀 === 语句左侧可包含方向前缀,例如 ''l:'' 或 ''f:'',用于当语句条件为 true 时定义列车发往的方向。 === 语句 === 在第三行和第四行,你可以设置要评估的语句。你可以输入[[Special:MyLanguage/TrainCarts/Signs/Direction|方向]],后跟 ''':'''(英文冒号),然后设置要切换的方向语句。例如: {{sign|[!train]|switcher|1:<trainsize>|r:i@wood}} 会将所有超过 5 个车厢的列车发往左侧,装有木头的列车发往右侧。转辙器会从上到下解析语句,因此超过 5 辆车厢且装有木头的列车也会发往左侧。 转辙器目前仅支持标签和玩家名称使用通配符(例如列车名称就不支持通配符)。 === 语句条件 === 要在下方的控制牌继续使用语句,则必须带有方向前缀,否则转辙器会忽略它们。如果你只想切换拉杆而不切换轨道,那你可以在这里添加任何方向前缀,比如 ''f:'' ,不过不会产生任何效果。[[#Redstone powered switcher|红石充能切换器]]示例使用了这一功能。 == 功能 == === 作为检测器 === 转辙器除了可以切换铁轨外还可以切换拉杆。使用 [-train] 可以关闭切换铁轨的功能,让转辙器只能切换拉杆。该功能可用于检测上方列车的变化。例如,当玩家进入列车时。 {{sign|[-train]|switcher|passengers|}} === 无列车切换 === 要在红石激活时切换轨道,而不需要火车先进入轨道,可以指定从和到的方向。例如: {{sign|[+train]|switcher|n-e:redstone|n-w:default}} 当由红石激活时,将铁轨转向东北,否则转向西北。这也适用于 TC-Coasters,通过指定连接点名称(1-2:redstone) === 路线查找 === {{sign|[+train]|switcher}} <div class="mw-translate-fuzzy"> 转辙器也可用于[[TrainCarts/PathFinding|路线查找]]。如果列车或矿车设置了目的地,并且转辙器上没有与之匹配的语句(或没有设置任何语句),它将切换轨道以使列车前往指定的目的地。如果你需要强制选择替代路线或需要让'通过'的列车绕行,请在该转辙器上添加一条语句来执行此操作。 </div> === 分配 === 如果你需要将矿车分配到多条轨道上,则可以使用计数逻辑: {{sign|[+train]|switcher|3|4}} 这个示例中,转辙器将向左发送 3 辆列车,然后向右发送 4 辆列车,之后不断循环。您可以将多个转辙器排成一排,将列车均匀地划分到多条轨道上。以下视频展示了这一点: https://www.youtube.com/watch?v=8KCfenk3Vi8 === 拆分列车 === 使用 [+cart] 的转辙器可以将列车在任意一个车厢的位置分开。这会在列车的中间部分驶进转辙器时切换轨道,将分开的部分发往不同的方向。可以使用百分比(比如50%),而不是整数值(比如左边一辆,右边一辆),无论列车中矿车的数量多少,都会将列车分成两半。 {{sign|[+cart]|switcher|50%|50%}} == 示例 == === 红石充能切换器 === 当在控制牌上使用 redstone 语句时,你可以完全控制将列车发往哪个方向: [[File:TrainCarts Redstone Switcher.png|600px|一个丁字路口红石转辙器示例。]] === 自动启动 === 使用<code>[-train]</code>passengers 转辙器时,一旦玩家进入列车,拉杆就会自动切换为开启状态,这个红石信号激活了一个相反的车站牌,使列车会向着有动力的一侧方向启动。在这里,一旦玩家进入,列车就会向左侧启动。红石中继器可用于延迟。 [[File:Tc_switcher_station.png|600px|转辙器通过拉杆激活车站来自动启动列车。]] === 矿车分割器 === <code>[+cart]</code>转辙器使用计数逻辑,一辆长列车就会被分割为一个个矿车。每辆矿车被平均分至 3 条轨道中的其中一条。单矿车转辙器下方的扩展控制牌增加了调车规则的数量。语句为:<code>l:1 r:1 f:1</code> [[File:Tc_cart_switcher_sorter.png|600px|单矿车模式的转辙器将列车每每分成三辆矿车,发往三条轨道。]]
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