# 合并资源包

{% hint style="danger" %}
**仅 ItemsAdder 3.3+ !**
{% endhint %}

## 为什么要合并？

**Minecraft 版本 1.20.3 之前** 仅**支持 1 个服务器资源包**。\
即使支持多资源包，也具有**无法合并自定义模型数据**的缺陷。\
**如果** 你需要使用多个资源包，你需要自行合并。

## 如何合并？

### 步骤 1

复制你的资源包中的 `assets` 文件夹。

### 步骤 2

将你的资源包中的 `assets` 文件夹粘贴到一个新的 `contents` 子文件夹中。\
例如 `merged_pack_1`：`ItemsAdder/contents/merged_pack_1/resourcepack/`

### 步骤 3

使用 `/iazip` 命令压缩 ItemsAdder 资源包。\
（确保根据你选择的托管方法，遵循正确的[托管教程](/chinese/cha-jian-shi-yong-fang-fa/resourcepack-hosting.md)。）

### 步骤 4（高级用户）

如果你要合并多个包，你可能需要决定合并优先级。\
打开 config.yml 并写入你的 `contents` 子文件夹的加载优先级顺序。

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

```yaml
    contents-folders-priorities:
      - vanilla
      - _iainternal
      - merged_pack_1
      - merged_pack_2
      - merged_pack_3
      # ... other packs here of which you want to change load order.
```

{% endcode %}

## 完成

## 示例

{% content-ref url="/pages/-MhTlm1pyRRdOKBcDJzn" %}
[ModelEngine](/chinese/compatibility-with-other-plugins/compatible/modelengine.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Ml9t2zjYKBDTO0hLz49" %}
[Nova](/chinese/compatibility-with-other-plugins/compatible/nova.md)
{% endcontent-ref %}

{% content-ref url="/pages/vpKiOTFqstdiZHn3FKJI" %}
[Space](/chinese/compatibility-with-other-plugins/compatible/space.md)
{% endcontent-ref %}


---

# 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/merge-resourcepacks.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.
