|
|
| (124 intermediate revisions by 2 users not shown) |
| Line 1: |
Line 1: |
| <languages/> | | <languages/> |
| | {{Plugin|TrainCarts|矿车,不止是矿车。|https://www.spigotmc.org/resources/traincarts.39592/|https://github.com/bergerhealer/TrainCarts|TrainCarts train 1.gif|250px}} |
|
| |
|
| {{Plugin|TrainCarts|Minecarts redefined|https://www.spigotmc.org/resources/traincarts.39592/|https://github.com/bergerhealer/TrainCarts|TrainCarts train 1.gif|250px}}
| | '''Traincarts'''是由Bergerkiller开发的一款插件,其功能涵盖了矿车交通相关的方方面面。插件的开发初衷是为了将多个矿车连在一起,形成一条拥有多节车厢的列车。随着时间的推移,插件不断推出更多功能,如控制牌、命令、属性、附件以及一套丰富的API接口,可供其它插件实现更多扩展功能。 |
|
| |
|
| [[Special:MyLanguage/Main Page|« 返回]]
| | == 列车 == |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 通过插件,可实现将多个矿车连接在一起,组成一条可近乎无限长的列车。在这条列车中,每一节矿车被称为“成员”,所有成员组合在一起,形成“编组”。每个成员都与编组保持信息共享,当第一节矿车撞到障碍物时,整个编组就会停止。当有人推动某节矿车时,这股推力会在所有成员间共享。因此在响应速度上,长列车会比短列车要慢得多。 |
| '''TrainCarts''' is a plugin developed by Bergerkiller and features everything related to Trains of minecarts. It was initially developed to link multiple carts together, creating a moving train. Over time the plugin grew to host many more features, such as action signs, commands, properties, attachments and a broad API other plugins can implement to add their own features.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 默认情况下,由玩家放置的所有矿车都将成为受插件管理的矿车。如果你想生成Minecraft原版的矿车,你可以通过'''权限'''或使用'''发射器'''来生成放置。更多信息请参阅[[Special:MyLanguage/TrainCarts/VanillaMinecarts|原版矿车]]。 |
| == Trains ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 生物默认不会自动进入受插件管理的矿车。如果你想更改此设置,可以使用原版矿车,或参阅[[Special:MyLanguage/TrainCarts/MobEntering|生物乘坐]]页面。 |
| The first thing you will notice is that you can now connect carts together to form infinitely long trains. Every cart in this train is called a ''member'', all members combined are called a ''group''. Every member communicates with the group, so when the front cart hits a block, it stops the entire group. When someone pushes a cart, this pushing force is shared among all members. Therefore, long trains are less responsive than short trains.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 生成 == |
| 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'''. [[TrainCarts/VanillaMinecarts|See this page for more information]].
| | 列车可通过[[TrainCarts/Train Spawn Chest|存车箱]]放置生成,或使用[[TrainCarts/Signs/Spawner|生成牌]]进行自动化生成。 |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Spawning|» 生成]] |
| Mobs no longer get into Traincarts Minecarts by default. If you want to change this, [[TrainCarts/MobEntering|see this page for more information]] or spawn vanilla minecarts instead.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Train Spawn Chest|» 存车箱]] |
| == Spawning ==
| |
| Trains can be spawned by players using Minecart items or the [[TrainCarts/Train Spawn Chest|Train Spawn chest]]. They can be spawned automatically using the [[TrainCarts/Signs/Spawner|spawn sign]].
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 列车属性 == |
| [[Special:MyLanguage/TrainCarts/Spawning|» Spawning]] | | 列车以及组成列车的单个矿车都具有各项属性。可使用命令<code>/train</code>和<code>/cart</code>进行设置,或使用[[Special:MyLanguage/TrainCarts/Signs/Property|属性牌]]进行更改。 |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Signs/Property|» 属性牌]] |
| [[Special:MyLanguage/TrainCarts/Train Spawn Chest|» Train Spawn Chest]] | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 新物理特性 == |
| == Properties == | |
| Trains and individual carts of trains have properties. These can be set using commands (/train and /cart) or using the [[TrainCarts/Signs/Property|property sign]].
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 列车可在压力板上和梯子侧面行驶,也可在方块下方放置的原版铁轨上倒悬行驶。 |
| [[Special:MyLanguage/TrainCarts/Signs/Property|» Property Sign]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Physical|» 物理特性]] |
| == New physics ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 控制牌 == |
| Trains can travel on top of pressure plates and alongside ladders, and also upside-down below vanilla rails placed on a ceiling.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 组合使用不同功能的控制牌可实现车站的自动化、乘客自动离车、玩家自动乘车以及在列车行驶过程中修改列车的各项属性。 |
| [[Special:MyLanguage/TrainCarts/Physical|» Physical]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Signs|» 控制牌]] |
| == Signs ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 命令 == |
| Loads of different signs are available to automate stations, eject trains, put players in trains or update train configuration.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 插件提供的命令可用于调整控制列车及矿车的行为。 |
| [[Special:MyLanguage/TrainCarts/Signs|» Signs]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Commands|» 命令]] |
| == Command ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 目标选择器 == |
| The plugin has lots of commands you can use to alter the behavior of trains and minecarts.
| | 您可以在其他所有命令(包括非本插件的命令)中使用目标选择器(如<code>@train</code>和<code>@ptrain</code>),通过选择器条件对列车或列车上的乘客执行操作。利用该功能,可轻松与其他插件(如经济和状态效果插件)结合使用。 |
| </div> | |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Commands/Selectors|» 目标选择器]] |
| [[Special:MyLanguage/TrainCarts/Commands|» Commands]] | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 自动寻路 == |
| == 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.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 可为列车设置一个目的地,随后道岔牌会根据目的地自动切换轨道,以最短的路线将列车发往目的地。此功能可用于实现大型铁路网的自动化运营,可全自动调度列车发往各个车站。你还可以为列车配置目的地列表,使列车自动按顺序往返于各个站点之间。 |
| [[TrainCarts/Commands/Selectors|» Command Selectors]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/PathFinding|» 自动寻路]] |
| == Path finding ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 车票 == |
| Trains can have a destination set, after which switcher signs will automatically switch the track to lead the train towards it with the shortest route possible. This can be used to automate a large train network, sending trains to different stations fully automatically. It is also possible to configure a list of destinations the train should visit and have the train automatically go from one destination to the next.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 车票用于限定玩家的乘车权限。此外,车票使用时可配置列车的属性,例如指定要前往的目的地。 |
| [[Special:MyLanguage/TrainCarts/PathFinding|» Traincarts Path Finding]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Tickets|» 车票]] |
| == Tickets ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 配置 == |
| 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.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | TrainCarts通过<code>config.yml</code>文件进行配置。所有配置项均附带了注释说明,方便理解各配置项的作用。以外,你还可以在<code>DefaultTrainProperties.yml</code>文件中设置新生成列车的默认属性,该文件同样添加了注释。请注意不要修改其它文件,否则可能会导致存档损坏或插件数据不同步。若配置文件意外损坏,直接删除它们即可,插件会重新生成所有必要的配置文件。 |
| [[Special:MyLanguage/TrainCarts/Tickets|» Traincarts Tickets]]
| |
| </div> | |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/TrainProperties|» 列车属性]] |
| == Configuration ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 附件 == |
| TrainCarts can be configured in the '''config.yml''' file. All setting nodes have a header to help you understand what that particular node adjusts. Other than that, you can set the default train properties (properties applied to new trains) in the '''DefaultTrainProperties.yml''' file. The nodes should speak for themselves. Try not to touch the other files, as it can cause corrupted save data, or the plugin getting out of sync. Deleting the files should re-set TrainCarts completely, may one of the files get corrupted. The plugin automatically generates all configuration needed.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 附件编辑器用于配置列车的外观。通过交互式面板,可轻松通过物品模型、实体、座位、声音等元素来配置自定义列车。所有附件均支持添加动画,让你的列车栩栩如生。 |
| [[Special:MyLanguage/TrainCarts/TrainProperties|» Train Properties]]
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Attachments|» 附件]] |
| ==Attachments==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 权限 == |
| 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.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr"> | | 和其他所有基于BKCommonLib的插件一样,你可以在插件目录的<code>PermissionDefaults.yml</code>文件中找到完整的权限设置。其中列出了每个权限与说明及其默认状态,可根据需要进行更改。 |
| [[Special:MyLanguage/TrainCarts/Attachments|» Attachments]]
| |
| </div> | |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Permissions|» 权限列表]] |
| == Permissions ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 性能 == |
| Like in all plugins that use BKCommonLib as a base, all permissions can be found in '''PermissionDefaults.yml''' in the plugin folder. There they are all listed together with a description and permission default, which you can alter as well.
| | 本插件的部分功能可能会导致服务器或客户端卡顿,进入下方的页面,其中有可避免卡顿的方法。 |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/Lag|» 卡顿]] |
| [[Special:MyLanguage/TrainCarts/Permissions|» Overview of all permissions]] | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == API与插件扩展 == |
| == Performance == | |
| Some features by this plugin may result in server or client lag. There are ways to prevent them.
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | TrainCarts提供了一套[[Special:MyLanguage/TrainCarts/API|灵活的API]],允许其他插件实现自定义轨道、控制牌、附件等功能。 |
| [[TrainCarts/Lag|» Lag]] | | * [[Special:MyLanguage/TC-Coasters|TC-Coasters]]:为TrainCarts添加平滑的过山车轨道。 |
| </div>
| | * [https://www.spigotmc.org/resources/tc-hangrail.39627/ TC-Hangrail]:可在任何方块上方悬浮或下方悬挂的虚拟轨道。 |
| | * [https://www.spigotmc.org/resources/traincartsdestinationselector.73170/ TrainCartsDestinationSelector]:添加可点击的告示牌,使玩家能够选择列车目的地。 |
| | * [https://www.spigotmc.org/resources/traincarts-advancedsigns.99881/ Traincarts AdvancedSigns]:添加更多控制牌类型,尤其适用于过山车。 |
| | * [https://www.spigotmc.org/resources/tcminecartvariants.100658/ TC Minecart Variants]:为运输不同资源(煤炭、黄金等)的矿车提供独特的模型。 |
| | * [https://www.spigotmc.org/resources/tcanimatronics.101995/ TCAnimatronics]:通过TrainCarts控制牌播放[https://www.spigotmc.org/resources/animatronics-animate-armorstands-1-8-1-18-2.36518/ 盔甲架]动画。 |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 相关链接 == |
| == API and Add-ons == | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | *[https://www.spigotmc.org/resources/traincarts.39592/ Spigot开发页面与讨论帖] |
| TrainCarts has a [[TrainCarts/API|flexible API]] which allows other plugins to implement custom track, signs, attachments and more.
| | *[https://discord.gg/wvU2rFgSnw Discord交流群] |
| * [[Special:MyLanguage/TC-Coasters|TC-Coasters]]: Adds smooth rollercoaster track to TrainCarts
| |
| * [https://www.spigotmc.org/resources/tc-hangrail.39627/ TC-Hangrail]: Hang below or float above any kind of block as fake track
| |
| * [https://www.spigotmc.org/resources/traincartsdestinationselector.73170/ TrainCartsDestinationSelector]: Adds clickable signs so players can select train destinations
| |
| * [https://www.spigotmc.org/resources/traincarts-advancedsigns.99881/ Traincarts AdvancedSigns]: Adds additional sign types, particularly useful for rollercoaster rides | |
| * [https://www.spigotmc.org/resources/tcminecartvariants.100658/ TC Minecart Variants]: Unique models for carts showing different types of resources (coal, gold, etc.)
| |
| * [https://www.spigotmc.org/resources/tcanimatronics.101995/ TCAnimatronics]: Play [https://www.spigotmc.org/resources/animatronics-animate-armorstands-1-8-1-18-2.36518/ Animatronics] animations with a Traincarts sign | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | '''Traincarts'''<br> |
| == Useful Links ==
| |
| </div>
| |
| | |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| |
| *[https://www.spigotmc.org/resources/traincarts.39592/ Spigot Dev Page & Forum]
| |
| *[https://discord.gg/wvU2rFgSnw Discord]
| |
| </div>
| |
| | |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| |
| '''Traincarts''' | |
| [https://www.spigotmc.org/resources/traincarts.39592/ Spigot] | | [https://www.spigotmc.org/resources/traincarts.39592/ Spigot] |
| [https://ci.mg-dev.eu/job/TrainCarts/ Jenkins] | | [https://ci.mg-dev.eu/job/TrainCarts/ Jenkins] |
| [https://github.com/bergerhealer/TrainCarts GitHub] | | [https://github.com/bergerhealer/TrainCarts GitHub] |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | '''BKCommonLib'''<br> |
| '''BKCommonLib''' | |
| [https://www.spigotmc.org/resources/bkcommonlib.39590/ Spigot] | | [https://www.spigotmc.org/resources/bkcommonlib.39590/ Spigot] |
| [https://ci.mg-dev.eu/job/BKCommonLib/ Jenkins] | | [https://ci.mg-dev.eu/job/BKCommonLib/ Jenkins] |
| [https://github.com/bergerhealer/BKCommonLib GitHub] | | [https://github.com/bergerhealer/BKCommonLib GitHub] |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | '''TC-Coasters'''<br> |
| '''TC Coasters''' | |
| [https://www.spigotmc.org/resources/tc-coasters.59583/ Spigot] | | [https://www.spigotmc.org/resources/tc-coasters.59583/ Spigot] |
| [https://ci.mg-dev.eu/job/TC%20Coasters/ Jenkins] | | [https://ci.mg-dev.eu/job/TC%20Coasters/ Jenkins] |
| [https://github.com/bergerhealer/TC-Coasters GitHub] | | [https://github.com/bergerhealer/TC-Coasters GitHub] |
| </div>
| |
|
| |
| <div lang="en" dir="ltr" class="mw-content-ltr">
| |
| == Depreciated Addons ==
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | == 弃用的插件扩展(新版本已不再支持) == |
| (No longer supported in current versions of Traincarts)
| |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | [[Special:MyLanguage/TrainCarts/ActionBlocks|ActionBlocks]]:为游戏引入了基于方块的系统。可将其视为控制牌系统的简化版本。 |
| [[Special:MyLanguage/TrainCarts/ActionBlocks|ActionBlocks]], added block-based systems to the game. They were dumbed-down versions of the sign systems mentioned above. | |
| </div>
| |
|
| |
|
| <div lang="en" dir="ltr" class="mw-content-ltr">
| | 下载:[https://github.com/bergerkiller/TrainCartsBlocks/ GitHub] |
| [https://github.com/bergerkiller/TrainCartsBlocks/ TrainCartsBlocks GitHub Download Page] | |
| </div>
| |