# 在其他插件使用 IA 物品

### 在其他插件插件使用 IA 物品材质

由于 **ItemsAdder** 的自定义物品本身就是基于原版的，因此不止可以在 **ItemsAdder** 本身使用所添加的自定义物品，其自定义的材质在其他插件中同样可以使用，下文即说明。

我们在前文已经了解过，自定义物品是通过 **CustomModelData** 实现的，我们只需要知道这个物品的 **CustomModelData** 值，再将其填写到其他插件的提供的物品的 **CustomModelData** 值选项内即可。

第一步：使用 `/iacustommodeldata 物品id` 获得对应 IA 物品的 `CustomModelData` 值及其对应 material。

第二步：将获得的值填写到其他插件的 **CustomModelData** 属性中，一般情况下插件不会直接给予这个选项，我们需要翻阅它的 Wiki 查看隐藏的属性，现如今几乎各个大型插件都有对此支持，如果没有支持，则我们无法在该插件使用 IA 物品显示。

这样一来，我们就可以在菜单等地方照样使用所添加的自定义物品的材质，但除非这些插件对 **ItemsAdder** 有挂钩，否则我们很难实现真正意义上使用 **IA** 物品，这种方法只能使用它的材质。

### 在其他插件使用 IA 物品

如果我们需要直接使用 **IA** 物品，即在其他插件获得的该物品能够被 **ItemsAdder** 识别并认可这是自己的物品，那么需要该插件与 **IA** 有挂钩，常见的挂钩将在下节说明。

针对没有与 **ItemsAdder** 直接挂钩但支持 **CustomModelData** 的插件，我们可以在物品显示时尽量在名称、Lore等方面与 **ItemsAdder** 的物品一致，在玩家获得该物品时则使用指令给予。例如商店售卖 **IA** 家具。


---

# 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://docs.superiormc.cn/itemsadder-doc/wu-pin/zai-qi-ta-cha-jian-shi-yong-ia-wu-pin.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.
