# 创建

## 安装 Blockbench 拓展

{% hint style="warning" %}
**继续之前：**

* 确保你运行的是 **Blockbench 4.7.4** 或更高版本
* 确保你运行的是最新的 ItemsAdder 和最新的 ItemsAdder Blockbench 扩展
  {% endhint %}

[下载 Blockbench](https://www.blockbench.net/)（不要使用网页版）。

![](/files/6bWuKLgFWfWIuJVE5Nh0)

\
[下载](https://github.com/LoneDev6/itemsadder-entity/releases) 扩展文件。

<figure><img src="/files/DC69rGH9BUxbgJdanARe" alt=""><figcaption></figcaption></figure>

然后打开 **Blockbench** 并点击 File -> Plugins。

![](/files/oZAO53JEGUA6SrT30FKK)

点击图标从文件加载插件，然后选择文件 `iaentitymodel.js`。

![](/files/8YbVzSaW789ns1grN3IL)

按 OK

![](/files/Afnl3tD0sBiXPWLsYf2K)

## 启用表情

打开 ItemsAdder 的 `config.yml` 并启用这两个选项，然后运行 `/iazip` 命令。

{% code title="config.yml" %}

```yaml
entities:
  custom-entitites:
    enabled: true
    emotes: true
```

{% endcode %}

## 打开动画编辑器

创建一个新的 "`ItemsAdder Entity Model`"

你可以创建任意数量的动画文件（**ItemsAdder 3.2.1+**）。

<figure><img src="/files/F2hgMWxLIyJQCHW2EcaI" alt=""><figcaption></figcaption></figure>

决定是否要创建带有示例的表情文件或空白表情文件。

<figure><img src="/files/GxhZGUkOR70THOns0Wiw" alt=""><figcaption></figcaption></figure>

为你的表情包决定一个名称。

<figure><img src="/files/L9u6mFXAIuv1kv0NhH04" alt=""><figcaption></figcaption></figure>

你可以在左侧看到很多示例动画。

![](/files/mnYnfmVFxjPGmC1r456T)

删除所有表情并编辑/重命名你想要的。\
它们仅作为你新表情的基础，提供一个学习的示例。

![](/files/WDlgw2zqBVImNjn7uERG)

现在创建一个新的动画（表情）并将你的 `.iaentitymodel` 项目文件保存到此文件夹中（将 `my_emotes` 更改为你的命名空间，这是一个示例）：\
`ItemsAdder/contents/my_emotes/resourcepack/`

![](/files/1TQcPYL5nKc3dMvu4Dl4)

然后继续按照教程了解如何将表情导出到 ItemsAdder。

### 将更改应用到 ItemsAdder

点击 **ItemsAdder** 选项卡并按 **Export**。

![](/files/lVy9Giz8kYmGwGh48ED3)

你应该会收到成功消息。

![](/files/w8a74yaAG2KAQcq0bIc6)

{% hint style="success" %}
如果你没有在表情中添加任何自定义模型，则<mark style="color:green;">不需要</mark>使用 `/iazip`！\
使用命令 `/iareload` 在游戏中加载新动画。
{% endhint %}

## 播放动画

使用表情命令：`/iaemote <emote> [player]` 或 `/emote <emote> [player]`

## 表情权限

使用 `/iaemote` 命令：`ia.user.iaemote`

使用表情：`ia.user.iaemote.use.<emote>`\
示例：`ia.user.iaemote.use.yes`

### 更多权限信息

{% content-ref url="/pages/-M2nN7f2VsaP7Nm7Yh7t" %}
[权限](/chinese/cha-jian-shi-yong-fang-fa/permissions.md)
{% endcontent-ref %}

## 在表情中添加自定义模型

### 一些示例的展示

{% embed url="<https://youtu.be/VnFNzmhAVIM>" %}

{% embed url="<https://youtu.be/aP5Jz9OW208>" fullWidth="false" %}

### 这里你可以下载一个示例项目：

{% embed url="<https://raw.githubusercontent.com/LoneDev6/SpigotUtilities/master/ItemsAdder/various_files/example_advanced_emotes.iaentitymodel>" %}

你可以向表情添加自定义模型，例如：物品、怪物、家具、动画效果。

### 重要

{% hint style="warning" %}
这需要 ItemsAdder 3.5.0 或更高版本。

* 不要删除任何内置的玩家骨骼。
* 不要调整任何内置的玩家骨骼的大小，它在游戏中不会起作用。
* 仅在动画视图中编辑内置的玩家骨骼（旋转、移动）。
* 你可以使用缩放将内置的玩家骨骼设置为 `0,0,0` 以隐藏。设置为 `1,1,1` 以显示。
  {% endhint %}

### 不同类型的表情

* `.player_advanced_animations` 文件格式现在用于标识也向表情添加自定义模型的玩家动画。
* `.player_animations` 是不添加任何自定义模型，但会加载到默认玩家模型中的玩家动画。

为了决定这一点，你需要在 **Blockbench** 扩展设置中设置此选项。

[![image](/files/xLO2nJxVhup8UrWVXSke)](https://user-images.githubusercontent.com/27242001/244145963-c9ca9a77-bb79-4804-92e4-8708eac41517.png)

<figure><img src="/files/jJG9qYh7VSMkxSldSUpC" alt=""><figcaption></figcaption></figure>

### 将元素导入场景

你可以将任何 `.bbmodel` 导入场景并在动画中使用它。\
你还可以导入特别的纹理以动态显示物品。

<figure><img src="/files/N0rcGsbAidNS3XTnXYvF" alt=""><figcaption></figcaption></figure>

### 在游戏的 `.iaentitymodel` 表情文件中隐藏未使用的元素

1. 选择动画
2. 选择要为特定动画隐藏的元素
3. 使用时间轴移动到动画的第一帧
4. 创建一个新的缩放关键帧，确保将其设置为第一个关键帧
5. 设置缩放为 0

现在你的模型不会在这个特定动画中显示。\
你可以通过执行相同的操作但将缩放设置为 1 来在动画中间显示/隐藏它。

<figure><img src="/files/2JqK0ZduGXrUL4gsSe7m" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/adding-content/player-emotes/creation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
