//Trigger
Jump to navigation
Jump to search
(Created page with "设置触发器的名称。该名称将应用于后面显示的信息。对于上面的语法示例,触发器会显示以下内容(SignLink 会自动更新): {| class="wikitable" |- ! 占位符 ! 显示内容 |- | %trigger1% | 从第四行设定的时间开始倒计时。 |- | %trigger1T% | 与上面相同。 |- | %trigger1D% | 列车的目的地。 |- | %trigger1N% | 列车的名称。 |- | %trigger1V% | 列车的速度。 |}") |
(Created page with "=== 第四行 ===") |
||
| Line 38: | Line 38: | ||
=== 第四行 === | |||
=== | |||
设置列车激活触发器时使用的倒计时时间格式。你可以使用比较常用的“:”字符来表示 时:分:秒,或 分:秒,或仅表示秒。若留空,则触发器会进入“记录模式”。 | |||
== 记录模式 == | |||
= | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
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. | 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. | ||
</div> | </div> | ||
Revision as of 02:19, 28 December 2025
介紹
觸發器用於顯示列車的信息。它也可以顯示列車進站的倒計時,內部通過計時器來進行測量。記得用紅石激活觸發器,若想始終激活觸發器,請使用[+train]。
語法
第二行: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.
