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下载页面