TrainCarts/Signs/Mutex [zh-hk]

From BergerHealer Wiki
Revision as of 02:53, 28 December 2025 by Eletronprocoress (talk | contribs) (Created page with "==== 预测 ==== 检测列车通过智能闭塞区间的路线时,会考虑转辙器,因此并不需要担心轨道的方向状态。")
Jump to navigation Jump to search

介紹

閉塞區間可防止多列車進入同一交叉路口導致相撞

閉塞區間牌可用於構造一個閉塞區間,當某一列車已進入閉塞區間(占用)時,其他列車將不能駛入。閉塞區間出清後,其他列車才能駛入。閉塞區間牌可以和道岔牌互相配合,避免列車相撞。當閉塞區間被占用時,控制牌底座連接的拉杆會輸出紅石信號。

可通過將多個閉塞區間命名為相同的名稱來進行組合,從而組建形狀複雜的閉塞區間。

語法

Signtemplate.png
[train]
mutex


Signtemplate.png
[train]
mutex 1/2/1


Signtemplate.png
[train]
mutex 1/2


Signtemplate.png
[train]
mutex 2


Signtemplate.png
[train]
mutex 2
name
d@Station 12


  • 第一行:[train](無需激活)。
  • 第二行:mutex,通過簡單設置參數,如 1x2x1(分別表示 x/y/z),即可創建一個長方體閉塞區間。當後面只跟著一個整數值時,該數值會一次性設置長方體的 x/y/z 半徑值(以控制牌控制的鐵軌為中心的半徑)。當後面跟著兩個整數值時,第一個數值設置長方體的 x/z 半徑值,第二個數值設置長方體的 y 半徑值。使用三個數值,分別設置長方體的 x/y/z 半徑值。
  • 第三行:名稱(可選),多個相同名稱的閉塞區間可組合形成更大更複雜的閉塞區間。
  • 第四行:語句(可選),每個相同名稱的控制牌都會添加到語句列表中。在前面添加「&」或「|」來表示「與」和「或」。

智能閉塞區間

智能閉塞區間運行兩輛列車通過,同時阻擋另外兩輛列車。

智能閉塞區間會檢測列車通過區間的路線,允許路線不互相影響的列車通過。這允許多列車同時穿過交叉路口,前提是路線不會互相影響。

Signtemplate.png
[train]
smartmutex 2


Signtemplate.png
[train]
smutex 5/6/8


預測

檢測列車通過智能閉塞區間的路線時,會考慮轉轍器,因此並不需要擔心軌道的方向狀態。

Pathing Mutex

Pathing Mutex creates a path that prevents another train from crossing at the same time

The pathing mutex attempts to replace the waiter sign in a more reliable fashion. When trains activate the pathing mutex sign, a path is predicted that the train will take from that point. All rails visited along this path become part of a temporary mutex zone. Other trains are blocked from entering this path, and if a train is already on it, the train is stopped in front of the pathing mutex sign.

Signtemplate.png
[train]
pathmutex 100


Signtemplate.png
[train]
pmutex 100


Signtemplate.png
[train]
spmutex 100 3


Syntax

pathmutex / pmutex: Creates a standard mutex zone using the path ahead

spmutex: Creates a smart mutex zone using the path ahead

First number is the path distance ahead to create as a mutex zone. Second number (optional) sets the width, or, distance that trains keep from the path. Setting this to a higher number avoids trains colliding with each other.

Slowing down on approach

By setting the train wait acceleration property, trains will automatically slow down approaching an occupied mutex zone, instead of stopping instantly.

Debug

Smart Mutex boundaries displayed using the /train debug mutex command

Use /train debug mutex to temporarily display the exact boundaries of nearby mutex zones.