Traincarts插件/控制牌/閉塞區

From BergerHealer Wiki
Jump to navigation Jump to search
This page is a translated version of the page TrainCarts/Signs/Mutex and the translation is 86% complete.
Outdated translations are marked like this.
Other languages:
English • ‎中文

» 控制牌


閉塞區(mutex)控制牌可以用於生成一個閉塞區域,當某一列車已經占用了這個區域時,它會阻止其它列車繼續進入。當前序列車離開閉塞區後,等待的列車就可以按照先來後到的順序繼續進入閉塞區。這個控制牌和Switcher道岔控制牌可以互相配合,防止列車相撞。此控制牌周圍可以設置一個拉杆,當有列車在閉塞區的時候,拉杆會輸出紅石信號。 總體來講,此功能類似於現實中的半自動閉塞。

多個閉塞區可以擁有同一個名稱,這樣插件會將它們組合為一個閉塞區。一旦有列車進入其中的任何一個區域,其它相同名稱的閉塞區也會禁止其它列車進入。這樣一來,鐵路系統可以擁有更複雜的閉塞區。

語法

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 如果不輸入更多參數的話,默認是以控制牌所在的格子為坐標中心,生成向x/y/z軸的正負方向分別擴展1/2/1格的長方體閉塞區。當mutex後面跟着一個數字作為參數時,該參數會應用於所有坐標軸,當後面跟着兩個數字時,第一個數字用於設置x/z軸上的距離,第二個數字設置y軸上的距離。當後面跟着三個數字時,三個數字分別對應x/y/z軸上的距離。
  • 第三行(可選),第三行代表此閉塞區的名稱,多個閉塞區命名為相同名稱會組合為一個大的閉塞區。
  • 第四行 條件語句 只有對應符合條件語句的列車會被此控制牌控制。 詳見Statement

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.