//Mutex
Saionji Rin (talk | contribs) No edit summary |
(Updating to match new version of source page) |
||
| Line 3: | Line 3: | ||
<div class="mw-translate-fuzzy"> | |||
==简介== | ==简介== | ||
</div> | |||
闭塞区(mutex)控制牌可以用于生成一个闭塞区域,当某一列车已经占用了这个区域时,它会阻止其它列车继续进入。当前序列车离开闭塞区后,等待的列车就可以按照先来后到的顺序继续进入闭塞区。这个控制牌和Switcher道岔控制牌可以互相配合,防止列车相撞。此控制牌周围可以设置一个拉杆,当有列车在闭塞区的时候,拉杆会输出红石信号。 | 闭塞区(mutex)控制牌可以用于生成一个闭塞区域,当某一列车已经占用了这个区域时,它会阻止其它列车继续进入。当前序列车离开闭塞区后,等待的列车就可以按照先来后到的顺序继续进入闭塞区。这个控制牌和Switcher道岔控制牌可以互相配合,防止列车相撞。此控制牌周围可以设置一个拉杆,当有列车在闭塞区的时候,拉杆会输出红石信号。 | ||
| Line 9: | Line 11: | ||
多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞区也会禁止其它列车进入。这样一来,铁路系统可以拥有更复杂的闭塞区。 | 多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞区也会禁止其它列车进入。这样一来,铁路系统可以拥有更复杂的闭塞区。 | ||
== 语法 == | == 语法 == | ||
| Line 32: | Line 33: | ||
*第三行(可选),第三行代表此闭塞区的名称,多个闭塞区命名为相同名称会组合为一个大的闭塞区。 | *第三行(可选),第三行代表此闭塞区的名称,多个闭塞区命名为相同名称会组合为一个大的闭塞区。 | ||
*第四行 条件语句 只有对应符合条件语句的列车会被此控制牌控制。 详见[[Special:MyLanguage/TrainCarts/Signs/Statements|Statement]] | *第四行 条件语句 只有对应符合条件语句的列车会被此控制牌控制。 详见[[Special:MyLanguage/TrainCarts/Signs/Statements|Statement]] | ||
=== Smart Mutex === | |||
[[File:Smartmutex.png|thumb|Smart Mutex allows two trains to pass while blocking two others]] | |||
The Smart Mutex is a mutex sign that checks the paths trains (will) take through the mutex zones, allowing trains to pass that don't have a path intersecting with one another. This allows multiple trains to cross an intersection at the same time provided they can safely pass each other. | |||
{{sign|[train]|smartmutex 2}} | |||
{{sign|[train]|smutex 5/6/8}} | |||
==== Prediction ==== | |||
When checking the path a train will take through the smart mutex zone, switchers are taken into account. The current switched state of the rails is then not important. | |||
== Debug == | |||
[[File:Debugmutex.png|thumb|Smart Mutex boundaries displayed using the /train debug mutex command]] | |||
Use '''/train debug mutex''' to temporarily display the exact boundaries of nearby mutex zones. | |||
Revision as of 17:58, 7 June 2022
簡介
閉塞區(mutex)控制牌可以用於生成一個閉塞區域,當某一列車已經占用了這個區域時,它會阻止其它列車繼續進入。當前序列車離開閉塞區後,等待的列車就可以按照先來後到的順序繼續進入閉塞區。這個控制牌和Switcher道岔控制牌可以互相配合,防止列車相撞。此控制牌周圍可以設置一個拉杆,當有列車在閉塞區的時候,拉杆會輸出紅石信號。 總體來講,此功能類似於現實中的半自動閉塞。
多個閉塞區可以擁有同一個名稱,這樣插件會將它們組合為一個閉塞區。一旦有列車進入其中的任何一個區域,其它相同名稱的閉塞區也會禁止其它列車進入。這樣一來,鐵路系統可以擁有更複雜的閉塞區。
語法
- 第一行[train]這個控制牌不需要紅石充能
- 第二行 mutex 如果不輸入更多參數的話,默認是以控制牌所在的格子為坐標中心,生成向x/y/z軸的正負方向分別擴展1/2/1格的長方體閉塞區。當mutex後面跟著一個數字作為參數時,該參數會應用於所有坐標軸,當後面跟著兩個數字時,第一個數字用於設置x/z軸上的距離,第二個數字設置y軸上的距離。當後面跟著三個數字時,三個數字分別對應x/y/z軸上的距離。
- 第三行(可選),第三行代表此閉塞區的名稱,多個閉塞區命名為相同名稱會組合為一個大的閉塞區。
- 第四行 條件語句 只有對應符合條件語句的列車會被此控制牌控制。 詳見Statement
Smart Mutex
The Smart Mutex is a mutex sign that checks the paths trains (will) take through the mutex zones, allowing trains to pass that don't have a path intersecting with one another. This allows multiple trains to cross an intersection at the same time provided they can safely pass each other.
Prediction
When checking the path a train will take through the smart mutex zone, switchers are taken into account. The current switched state of the rails is then not important.
Debug
Use /train debug mutex to temporarily display the exact boundaries of nearby mutex zones.
