TrainCarts/Signs/Trigger [zh-cn]

From BergerHealer Wiki
Revision as of 02:19, 28 December 2025 by Eletronprocoress (talk | contribs) (Created page with "=== 第四行 ===")
Jump to navigation Jump to search
Other languages:

介紹

觸發器用於顯示列車的信息。它也可以顯示列車進站的倒計時,內部通過計時器來進行測量。記得用紅石激活觸發器,若想始終激活觸發器,請使用[+train]


語法

Signtemplate.png
[train]
trigger
trigger1
00:26


第二行:trigger


第三行

設置觸發器的名稱。該名稱將應用於後面顯示的信息。對於上面的語法示例,觸發器會顯示以下內容(SignLink 會自動更新):

占位符 顯示內容
%trigger1% 從第四行設定的時間開始倒計時。
%trigger1T% 與上面相同。
%trigger1D% 列車的目的地。
%trigger1N% 列車的名稱。
%trigger1V% 列車的速度。


第四行

設置列車激活觸發器時使用的倒計時時間格式。你可以使用比較常用的「:」字符來表示 時:分:秒,或 分:秒,或僅表示秒。若留空,則觸發器會進入「記錄模式」。


記錄模式

This means that the plugin is going to calculate the duration itself. As soon as one minecart activates the trigger, it keeps track of this minecart while measuring the time. As soon as the minecart stops or is destroyed, the time is stopped and put on the sign.