TrainCarts/zh

From BergerHealer Wiki
Jump to navigation Jump to search
This page is a translated version of the page TrainCarts and the translation is 72% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Español • ‎Nederlands • ‎中文 • ‎中文(簡體)‎ • ‎日本語 • ‎한국어
TrainCarts
TrainCarts train 1.gif
Minecarts redefined
Spigot: TrainCarts
GitHub: TrainCarts


« 返回上一頁

由Bergerkiller開發的Traincart插件(以下簡稱TC插件)涵蓋了Minecraft中有關礦車的一切內容。其最初目的是為了將多個礦車編組,使其能像現實中的火車一樣運行。隨着時間的推移,該插件逐漸衍生出更多功能,如控制牌、指令、列車屬性等。同時,插件還提供了多個API接口,便於通過其它插件來實現更多DIY功能。

列車

首先,通過TC插件可以將多輛礦車連接在一起,編組為一列無限長度的火車。這列車中的每節車廂在插件中被定義為一個「成員(Member)」,所有成員組成的列車稱之為「組(Group)」,每個成員都會和組內的其它成員共享運行狀態和信息,所以當第一節礦車撞到障礙物時,組內的所有其它礦車都會停下來。同樣,當推動整列火車時,由於外力需要克服整列火車的摩擦力,所以長編組列車的反應速度比短編組慢。

By default all minecarts placed by players become TrainCarts managed Minecarts. If you want to spawn Vanilla Minecarts that behave with original Minecraft Physics, you can do so through permissions or by spawning with a dispenser. See this page for more information.

Mobs no longer get into Traincarts Minecarts by default. If you want to change this, see this page for more information or spawn vanilla minecarts instead.

Properties

Trains and individual carts of trains have properties. These can be set using commands (/train and /cart) or using the property sign.

新的物理特性

列車可以在壓力板上方和梯子側面行駛,也可以在方塊下方放置的軌道上倒懸運行。

» 物理特性

控制牌

大量不同功能的控制牌可以實現車站的自動控制,清空列車,讓玩家進入車廂或在運行中改變列車的各項屬性。

» 控制牌

指令

插件同時提供多種指令讓玩家可以實時調整整列礦車或單節礦車的運行屬性。

» 指令

Command Selectors

You can use command selectors like @train and @ptrain in all other commands (including non-traincarts commands) to perform actions on trains or player passengers of trains based on selector criteria. For tighter integration with other plugins like economies and status effects, this is the ideal mechanism.

列車生成箱

一個特殊的物品能讓整列車被當作一個物品撿起或放置。

» 列車生成箱

自動尋路

列車可以設置一個目的地,之後道岔控制牌會根據目的地自動切換道岔,以最短路徑引導列車駛向目的地。通過此功能可實現一個大型鐵路網的自動化控制,將列車自動發送至不同目的地。同時,通過維護經由也可以設置路徑點,讓列車自動從一個目的地按順序前往下個目的地。

» 自動尋路

Tickets

Train ticket items can be used to restrict who can enter trains. They can also be used to assign properties to trains when used, such as assigning a destination to go to.

設置

TC插件的各項功能可以在插件文件夾的「config.yml」中調整。在配置文件中,所有的設置均注釋了描述性內容供你了解該設定的調整內容。除此以外,你還可以在「DefaultTrainProperties.yml」文件中設置默認的列車屬性(應用於保存設定後,新列車的屬性),同樣,該文件也提供了注釋幫助你理解。除了這兩個文件以外,儘量不要更改其它文件,因為這可能導致數據損壞或者插件之間失去同步。如果遇到了這種情況,請刪除文件並重啟服務端,讓插件重新生成默認配置文件。

» 列車屬性

附件

The attachment editor is used to configure the appearance of your train. The interactive menu enables players to configure customized trains using item models, entities, seats, sounds and more. All of these can be animated to bring the train alive.

» 附件 (頁面正在編篡)

權限

和所有使用 BKCommonLib 作為基礎的插件一樣,所有的權限都可在插件文件夾中的「PermissionDefaults.yml」中找到。所有權限節點並列其中並附有描述,可以根據需求更改。

» 權限節點總覽

性能

TC插件的一些特性可能會導致服務端或客戶端卡頓,下面列出了一些預防方案。

» 卡頓

API接口和附加組件

TC插件擁有一個 flexible API ,允許其他插件實現自定義軌道、控制牌和附件等更多功能。

  • TC-Coasters: 過山車插件-配合TC插件實現更平順的過山車功能。

實用連結

Traincarts插件開發頁面

Spigot

Jenkins

GitHub

BKCommonlib開發頁面(TC插件前置) Spigot

Jenkins

GitHub

TC 過山車

Spigot

Jenkins

GitHub

Depreciated Addons

(No longer supported in current versions of Traincarts)

ActionBlocks, added block-based systems to the game. They were dumbed-down versions of the sign systems mentioned above.

TrainCartsBlocks GitHub下載頁面