Traincarts插件/控制牌/閉塞區
Revision as of 08:59, 24 December 2021 by Saionji Rin (talk | contribs) (Created page with "多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞...")
簡介
閉塞區(mutex)控制牌可以用於生成一個閉塞區域,當一列火車已經進入這個區域時,它會阻止其它火車繼續進入。當前序列車離開閉塞區後,等待的列車就可以按照先來後到的順序繼續進入閉塞區。這個控制牌和Switcher道岔控制牌可以互相配合,防止列車相撞。此控制牌周圍可以設置一個拉杆,當有列車在閉塞區的時候,拉杆會輸出紅石信號。 總體來講,此功能類似於現實中的半自動閉塞。
多個閉塞區可以擁有同一個名稱,這樣插件會將它們組合為一個閉塞區。一旦有列車進入其中的任何一個區域,其它相同名稱的閉塞區也會禁止其它列車進入。這樣一來,鐵路系統可以擁有更複雜的閉塞區。
語法
[train]
mutex
[train]
mutex 1/2/1
[train]
mutex 1/2
[train]
mutex 2
[train]
mutex 2
name
d@Station 12
- First line: [train]. The sign does not have to be powered.
- Second line: mutex, which without further arguments will create a cuboid zone around the sign of 1x2x1 (x/y/z). When followed by one number, the number sets all cuboid x/y/z-radius values at once. When followed by a second number, the first number sets the x/z-radius and the second number the y-radius. With 3 parameters, each x/y/z radius can be specified.
- Third line: Name (optional), multiple mutex signs with the same name form a single combined mutex zone
- Fourth line: Statement (optional), each sign with the same name adds to a list of statements. Prepend & or | to switch between AND and OR logic.