Difference between revisions of "TrainCarts/Attachments/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "* 变换类型 * 锚点")
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
[[Special:MyLanguage/TrainCarts|« 返回]]
 
[[Special:MyLanguage/TrainCarts|« 返回]]
[[File:Attachment_editor_wooden_car.png|thumb|正在使用附件编辑器编辑自定义矿车。]]
+
[[File:Attachment_editor_wooden_car.png|thumb|正在使用配件编辑器编辑自定义矿车。]]
[[File:Rotating_attachments.gif|thumb|两个模型附件以动画形式呈现,演示了层次结构的使用。]]
+
[[File:Rotating_attachments.gif|thumb|两个模型配件以动画形式呈现,演示了层次结构的使用。]]
  
 
==介绍==
 
==介绍==
'''附件编辑器'''是一个可交互式的操作面板,通过[[Special:MyLanguage/Map Display|地图显示]],你可以通过它来自定义列车的各个车厢。
+
'''配件编辑器'''是一个可交互式的操作面板,通过[[Special:MyLanguage/Map Display|地图显示]],你可以通过它来自定义列车的各个车厢。
该面板用于配置矿车的外观和行为,以[[wikipedia:Tree structure|树状结构]]显示不同的附件。每个附件都是列车的一部分,例如移动中的实体或者座位名称。
+
该面板用于配置矿车的外观和行为,以[[wikipedia:Tree structure|树状结构]]显示不同的配件。每个配件都是列车的一部分,例如移动中的实体或者座位名称。
子项附件相对于父项附件进行定位。因此你可以在制作动画时移动许多附件的同时将这几个附件作为整体再进行移动。
+
子项配件相对于父项配件进行定位。因此你可以在制作动画时移动许多配件的同时将这几个配件作为整体再进行移动。
  
 
==基础用法==
 
==基础用法==
Line 13: Line 13:
 
=== 命令 ===
 
=== 命令 ===
  
要使用附件编辑器,首先需要获取它:
+
要使用配件编辑器,首先需要获取它:
 
{{Command|train attachments|Give the player the attachment editor map item|train.command.editor}}
 
{{Command|train attachments|Give the player the attachment editor map item|train.command.editor}}
  
Line 22: Line 22:
 
[[Special:MyLanguage/TrainCarts/Editing|» 编辑]]
 
[[Special:MyLanguage/TrainCarts/Editing|» 编辑]]
  
===导航===
+
===目录===
  
每个附件都显示在不同的行上,每次将其添加到新的父项时,都会向右缩进。要在附件之间导航,请使用上/下(W/S)转向。对于每个选定的附件,可以通过Each attachment is displayed on a different row, with an indent to the right every time it is added to a new parent. To navigate between attachments, use the Up/Down (W/S) steering controls. For each attachment selected, different menus can be accessed by pressing Left/Right (A/D) and Jump (spacebar) afterwards. Once inside a menu, the sneak button (shift) can be used to exit it again. This behavior is the same for all other menus. To move around while still viewing the editor, it can be placed into the off-hand (''typically F'').
+
每个配件都显示在不同的行上,每次将其添加到新的父项时,都会向右缩进。要在配件之间移动,请使用上/下(W/S 键)。对于每个选定的配件,可以通过左/右(A/D 键)和跳转(空格键)来访问不同的面板。进入面板后,可以使用潜行按钮(Shift 键)返回。所有面板都适用该操作。要在查看编辑器的同时四处移动,可以将编辑器放在副手(''通常为 F '')上。
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
要添加、复制、移动、删除配件,请使用[[Special:MyLanguage/TrainCarts/Attachments/General|General 常规面板]](图标由三条横线构成)。
To add new attachments, duplicate them, change the position in the tree hierarchy, or to delete them, use the [[Special:MyLanguage/TrainCarts/Attachments/General|General menu]] denoted by three horizontal lines.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
===放置物品===
===Dropping items===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
[[File:Attachments_Drop_Item_Small.gif|thumb|一个物品从物品栏中掉了出来,并设置进了配件中。|link=File:Attachments_Drop_Item.gif]]
[[File:Attachments_Drop_Item_Small.gif|thumb|An item is dropped from the inventory, configuring the attachment|link=File:Attachments_Drop_Item.gif]]
+
可以通过从玩家的物品栏中丢出物品来快速设置显示的物品。打开面板后,只需打开背包,鼠标点击选起要显示的物品,然后单击背包外部丢出即可将其设置进配件中。配置过程中物品不会真的掉落,并且还能快速设置配件显示物品。
Menus where an item is being configured can be set instantly by dropping an item from the player's inventory. With the menu open, simply open the inventory, pick the item to set, and click on the outside of the inventory to drop it. The drop will be cancelled and the item set in the menu.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
===数值===
===Numbers===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
数值滑块用于配置数值,例如位置坐标。按一次左/右键(A/D)将增加/减少非常小的数值。按住的时间越长,数值递增/递减越快。
Number sliders are used to configure numeric values, such position coordinates. Pressing the Left/Right buttons once will increment/decrement a very small amount. Holding the buttons for a longer time causes the number to increment/decrement faster and faster the longer it is being held down.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
按住空格键可以将数值重置为默认值,通常为 0。
By holding Spacebar a number field can be reset to its default, usually 0. By holding spacebar and then pressing left/right, a special action can be performed. Usually this means inverting the value (-5 -> 5) or changing an angle in 90 degree steps.
+
按住空格键的同时如果按左/右键,可以执行特殊操作。例如反转数值(-5 -> 5)或以 90 度为步长更改角度。
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
===文本===
===Text===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
文本使用铁砧的 UI 界面输入。输入文本后,单击绿宝石确定,或单击屏障方块取消更改。
Text is input using an anvil menu. After typing in the desired text, click on the emerald to proceed, or the barrier item to cancel the change.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
===使用命令设置===
===Setting using commands===
 
</div>
 
 
{{Command|train menu set [value]|Set a numeric or text value for the currently selected menu|train.command.editor}}
 
{{Command|train menu set [value]|Set a numeric or text value for the currently selected menu|train.command.editor}}
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
==注意事项==
==Gotchas==
+
* 确保定期使用<code>/train save name</code>来保存你的列车!只有保存的列车才能进行恢复。
* Make sure to use <code>/train save name</code> to save your train regularly! Only saved trains can be restored
+
* 利用[[Special:MyLanguage/TrainCarts/Train Spawn Chest|列车生成箱]]来转移你的列车或重新组合列车。
* Make use of the [[Special:MyLanguage/TrainCarts/Train Spawn Chest|train storage chest]] to move your train around or to recombine the carts
+
* [[Special:MyLanguage/TrainCarts/Attachments/Physical|Physical 物理面板]]中更改矿车之间的间距以及车轮的位置。
* Change spacing between carts, and where wheels are positioned, in the [[Special:MyLanguage/TrainCarts/Attachments/Physical|Physical menu]]
+
* 制作动画时,确保动画帧的 ΔT 大于 0。否则动画速度将不起作用。
* When animating, make sure your animation frames have a delta-T greater than 0. Otherwise animation speed will not function.
+
* 默认无法单击新的实体显示:
* The new Display Entities cannot be clicked by default:
+
** 如果你无法通过单击来编辑列车,看着它并输入<code>/train edit</code>命令来选中它。
** If you cannot click to edit a train, look at it and do <code>/train edit</code> to select it
+
** 要允许玩家点击矿车进入座位,确保添加了'''Hitbox 碰撞箱配件'''
** To allow players to click on the cart to enter a seat, make sure to add a '''Hitbox attachment'''.
+
* 你可以在[[Special:MyLanguage/TrainCarts/Attachments/General|General 常规面板]][[Special:MyLanguage/TrainCarts/Attachments/Model#Model_Store|Model 模型库]]中保存配件的分支,并在多个地方使用[[Special:MyLanguage/TrainCarts/Attachments/Model|'''模型配件''']]创建保存的分支。同时还具有剪贴板和导入/导出功能。
* You can save a sub-tree of attachments in the [[Special:MyLanguage/TrainCarts/Attachments/Model#Model_Store|Model Store]] in the [[Special:MyLanguage/TrainCarts/Attachments/General|General menu]], and create it in multiple places using the [[Special:MyLanguage/TrainCarts/Attachments/Model|'''Model Attachment''']]. There is also a clipboard and import/export function.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
==面板==
==Menu==
+
===Appearance 外观===
===Appearance===
+
外观面板在顶部包含了一个选择器,用于设置配件类型,面板的其余部分展示此类型的其他配置。
The Appearance Menu contains a selector at the top where the attachment type is configured, with the remainder of the menu automatically filled with this type's configuration.
 
</div>
 
  
 
{| class="wikitable" style="margin:left"
 
{| class="wikitable" style="margin:left"
|+附件类型
+
|+配件类型
 
! 类型 !! 描述
 
! 类型 !! 描述
 
|-
 
|-
| '''Empty 空''' || 什么也不显示。可用于标记附件以轻松定位多个其他附件,并用作动画的锚点。
+
| '''Empty 空''' || 什么也不显示。可用于标记配件以轻松定位多个其他附件,并用作动画的锚点。
 
|-bgcolor="#dddddd"
 
|-bgcolor="#dddddd"
 
| '''Hitbox 碰撞箱''' || 创建一个类似生物的碰撞箱(可点击)。这对于进入座位很重要。大小在 Position (位置)面板中配置。
 
| '''Hitbox 碰撞箱''' || 创建一个类似生物的碰撞箱(可点击)。这对于进入座位很重要。大小在 Position (位置)面板中配置。
Line 98: Line 77:
 
| [[Special:MyLanguage/TrainCarts/Attachments/Seat|'''Seat 座位''']] || 玩家或实体的座位。
 
| [[Special:MyLanguage/TrainCarts/Attachments/Seat|'''Seat 座位''']] || 玩家或实体的座位。
 
|-
 
|-
| [[Special:MyLanguage/TrainCarts/Attachments/Model|'''Model 模型''']] || 从模型库中加载完整的附件配置。
+
| [[Special:MyLanguage/TrainCarts/Attachments/Model|'''Model 模型''']] || 从模型库中加载完整的配件配置。
 
|-bgcolor="#dddddd"
 
|-bgcolor="#dddddd"
 
| '''Text 文本''' || 悬浮文本。
 
| '''Text 文本''' || 悬浮文本。
 
|-
 
|-
| '''Platform 平台''' || 可供玩家站立的移动潜影盒。但不会向上移动。
+
| '''Platform 平台''' || 可供玩家站立的移动潜影盒,但不会向上移动。
 
|-bgcolor="#dddddd"
 
|-bgcolor="#dddddd"
 
| '''Schematic 原理图''' || 使用 WorldEdit 创世神模组保存的原理图来显示多个方块。
 
| '''Schematic 原理图''' || 使用 WorldEdit 创世神模组保存的原理图来显示多个方块。
 
|-
 
|-
| '''Light 亮度''' || 安装 [https://www.spigotmc.org/resources/lightapi-fork.48247/ LightAPI] 后,在附件的位置生成一个移动光源。
+
| '''Light 亮度''' || 安装 [https://www.spigotmc.org/resources/lightapi-fork.48247/ LightAPI] 后,在配件的位置生成一个移动光源。
 
|-bgcolor="#dddddd"
 
|-bgcolor="#dddddd"
| [[Special:MyLanguage/TrainCarts/Attachments/Sound|'''Sound''']] || Adds a sound effect played with effect signs, command or the sequencer
+
| [[Special:MyLanguage/TrainCarts/Attachments/Sound|'''Sound''']] || 添加使用效果牌、命令或音序器播放的声音效果。
 
|-
 
|-
 
| [[Special:MyLanguage/TrainCarts/Attachments/Sequencer|'''Sequencer''']] || 自动播放效果。用于创建环境音效循环(如引擎噪声)或激活循环上的粒子效果(如火车烟囱)。
 
| [[Special:MyLanguage/TrainCarts/Attachments/Sequencer|'''Sequencer''']] || 自动播放效果。用于创建环境音效循环(如引擎噪声)或激活循环上的粒子效果(如火车烟囱)。
Line 119: Line 98:
  
 
===Position 位置===
 
===Position 位置===
位置面板配置附件的位置和旋转角度。还包括一些类型附件的其他选项,例如物品的缩放和变换选项。
+
位置面板设置配件的位置和旋转角度。还包括一些类型配件的其他选项,例如物品的缩放和变换选项。
  
 
[[Special:MyLanguage/TrainCarts/Attachments/Position|» 位置面板]]
 
[[Special:MyLanguage/TrainCarts/Attachments/Position|» 位置面板]]
  
 
===Animation 动画===
 
===Animation 动画===
动画面板可以为附件添加动画效果,例如移动或旋转。这对于游乐场的一些游乐设施或者动画门时特别有用。
+
动画面板可以为配件添加动画效果,例如移动或旋转。这对于游乐场的一些游乐设施或者带动画的门时特别有用。
  
 
[[Special:MyLanguage/TrainCarts/Attachments/Animation|» 动画面板]]
 
[[Special:MyLanguage/TrainCarts/Attachments/Animation|» 动画面板]]
  
 
===General 常规===
 
===General 常规===
常规面板用于添加、删除、移动、命名或从[[Special:MyLanguage/TrainCarts/Attachments/Model#Model_Store|模型库]]加载/保存附件。
+
常规面板用于添加、删除、移动、命名或从[[Special:MyLanguage/TrainCarts/Attachments/Model#Model_Store|模型库]]加载/保存配件。
  
 
[[Special:MyLanguage/TrainCarts/Attachments/General|» 常规面板]]
 
[[Special:MyLanguage/TrainCarts/Attachments/General|» 常规面板]]
  
 
==Effect Activation 效果激活==
 
==Effect Activation 效果激活==
Effect attachments such as the [[Special:MyLanguage/TrainCarts/Attachments/Sound|sound attachment]] must be activated. First, the attachment must be [[Special:MyLanguage/TrainCarts/Attachments/General#Name|named in the general menu]]. It can then be activated in multiple ways:
+
必须激活诸如[[Special:MyLanguage/TrainCarts/Attachments/Sound|声音附件]]之类的效果配件。首先,配件必须在[[Special:MyLanguage/TrainCarts/Attachments/General#Name|常规面板]]中命名。之后可以通过多种方式激活它:
 
* 使用[[Special:MyLanguage/TrainCarts/Signs/Effect|效果牌]]。
 
* 使用[[Special:MyLanguage/TrainCarts/Signs/Effect|效果牌]]。
 
* 使用<code>/train effect <名称></code>命令。
 
* 使用<code>/train effect <名称></code>命令。
* 使用[[Special:MyLanguage/TrainCarts/Attachments/Sequencer|音序器附件]]。
+
* 使用[[Special:MyLanguage/TrainCarts/Attachments/Sequencer|音序器配件]]。
  
  
  
==积压==
+
==待办事项==
  
 
===编辑器===
 
===编辑器===
Line 148: Line 127:
 
-> 目录树面板
 
-> 目录树面板
  
===Position 位置===
+
===位置===
  
 
* [[Special:MyLanguage/TrainCarts/Attachments/TransformType|变换类型]]
 
* [[Special:MyLanguage/TrainCarts/Attachments/TransformType|变换类型]]
 
* [[Special:MyLanguage/TrainCarts/Attachments/Anchor|锚点]]
 
* [[Special:MyLanguage/TrainCarts/Attachments/Anchor|锚点]]
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
===动画===
===Animations===
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
* [[Special:MyLanguage/TrainCarts/Animations/Overview|概述]]
* [[Special:MyLanguage/TrainCarts/Animations/Overview|Overview]]
 
</div>
 

Latest revision as of 13:29, 4 October 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回

正在使用配件编辑器编辑自定义矿车。
两个模型配件以动画形式呈现,演示了层次结构的使用。

介绍

配件编辑器是一个可交互式的操作面板,通过地图显示,你可以通过它来自定义列车的各个车厢。 该面板用于配置矿车的外观和行为,以树状结构显示不同的配件。每个配件都是列车的一部分,例如移动中的实体或者座位名称。 子项配件相对于父项配件进行定位。因此你可以在制作动画时移动许多配件的同时将这几个配件作为整体再进行移动。

基础用法

命令

要使用配件编辑器,首先需要获取它:

Give the player the attachment editor map item
Command: /train attachments
Permission: train.command.editor


编辑

要编辑列车中的单个车厢并呈现在编辑器里,你需要先选中这个车厢。

» 编辑

目录

每个配件都显示在不同的行上,每次将其添加到新的父项时,都会向右缩进。要在配件之间移动,请使用上/下(W/S 键)。对于每个选定的配件,可以通过左/右(A/D 键)和跳转(空格键)来访问不同的面板。进入面板后,可以使用潜行按钮(Shift 键)返回。所有面板都适用该操作。要在查看编辑器的同时四处移动,可以将编辑器放在副手(通常为 F 键)上。

要添加、复制、移动、删除配件,请使用General 常规面板(图标由三条横线构成)。

放置物品

一个物品从物品栏中掉了出来,并设置进了配件中。

可以通过从玩家的物品栏中丢出物品来快速设置显示的物品。打开面板后,只需打开背包,鼠标点击选起要显示的物品,然后单击背包外部丢出即可将其设置进配件中。配置过程中物品不会真的掉落,并且还能快速设置配件显示物品。

数值

数值滑块用于配置数值,例如位置坐标。按一次左/右键(A/D)将增加/减少非常小的数值。按住的时间越长,数值递增/递减越快。

按住空格键可以将数值重置为默认值,通常为 0。 按住空格键的同时如果按左/右键,可以执行特殊操作。例如反转数值(-5 -> 5)或以 90 度为步长更改角度。

文本

文本使用铁砧的 UI 界面输入。输入文本后,单击绿宝石确定,或单击屏障方块取消更改。

使用命令设置

Set a numeric or text value for the currently selected menu
Command: /train menu set [value]
Permission: train.command.editor


注意事项

  • 确保定期使用/train save name来保存你的列车!只有保存的列车才能进行恢复。
  • 利用列车生成箱来转移你的列车或重新组合列车。
  • Physical 物理面板中更改矿车之间的间距以及车轮的位置。
  • 制作动画时,确保动画帧的 ΔT 大于 0。否则动画速度将不起作用。
  • 默认无法单击新的实体显示:
    • 如果你无法通过单击来编辑列车,看着它并输入/train edit命令来选中它。
    • 要允许玩家点击矿车进入座位,确保添加了Hitbox 碰撞箱配件
  • 你可以在General 常规面板Model 模型库中保存配件的分支,并在多个地方使用模型配件创建保存的分支。同时还具有剪贴板和导入/导出功能。

面板

Appearance 外观

外观面板在顶部包含了一个选择器,用于设置配件类型,面板的其余部分展示此类型的其他配置。

配件类型
类型 描述
Empty 空 什么也不显示。可用于标记配件以轻松定位多个其他附件,并用作动画的锚点。
Hitbox 碰撞箱 创建一个类似生物的碰撞箱(可点击)。这对于进入座位很重要。大小在 Position (位置)面板中配置。
Entity 实体 显示生物之类的实体。
Item 物品 显示物品(使用隐形盔甲架来显示)或使用实体显示来显示物品。实体显示仅适用于 Minecraft 1.20+ 以上版本。
Block 方块 使用实体显示显示方块。仅适用于 Minecraft 1.20+ 以上版本。
Seat 座位 玩家或实体的座位。
Model 模型 从模型库中加载完整的配件配置。
Text 文本 悬浮文本。
Platform 平台 可供玩家站立的移动潜影盒,但不会向上移动。
Schematic 原理图 使用 WorldEdit 创世神模组保存的原理图来显示多个方块。
Light 亮度 安装 LightAPI 后,在配件的位置生成一个移动光源。
Sound 添加使用效果牌、命令或音序器播放的声音效果。
Sequencer 自动播放效果。用于创建环境音效循环(如引擎噪声)或激活循环上的粒子效果(如火车烟囱)。

Physical 物理

物理面板配置矿车的长度以及车轮的位置。

» 物理面板

Position 位置

位置面板设置配件的位置和旋转角度。还包括一些类型配件的其他选项,例如物品的缩放和变换选项。

» 位置面板

Animation 动画

动画面板可以为配件添加动画效果,例如移动或旋转。这对于游乐场的一些游乐设施或者带动画的门时特别有用。

» 动画面板

General 常规

常规面板用于添加、删除、移动、命名或从模型库加载/保存配件。

» 常规面板

Effect Activation 效果激活

必须激活诸如声音附件之类的效果配件。首先,配件必须在常规面板中命名。之后可以通过多种方式激活它:


待办事项

编辑器

-> 目录树面板

位置

动画