TrainCarts/Signs/Mutex [zh-hans]

From BergerHealer Wiki
Revision as of 02:51, 28 December 2025 by Eletronprocoress (talk | contribs)
Jump to navigation Jump to search
Other languages:

介紹

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

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

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

語法

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 半徑值。
  • 第三行:名稱(可選),多個相同名稱的閉塞區間可組合形成更大更複雜的閉塞區間。
  • 第四行:語句(可選),每個相同名稱的控制牌都會添加到語句列表中。在前面添加「&」或「|」來表示「與」和「或」。

Smart Mutex

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.

Signtemplate.png
[train]
smartmutex 2


Signtemplate.png
[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.

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.