> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/contributor/contributor-zh/nei-rong/collections.md).

# 集合

集合是一组 [可穿戴物品](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/wearables.md) 和 [表情动作](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/emotes.md) ，定义在同一个链下命名空间或链上合约中。

它们并不是 [实体](https://github.com/decentraland/docs/tree/main/contributor/entities.md) 本身，但其单独的物品通常可以通过内容服务器使用以下方式获取： [指针](https://github.com/decentraland/docs/tree/main/contributor/pointers.md).

### URN 和指针 <a href="#pointers" id="pointers"></a>

集合通过 URN 标识，它们是其物品 URN 的前缀。URN 共有 4 种通用类型：

* `v1` 包含经基金会批准内容的集合（已弃用）。
* `v2` 包含经社区批准内容的集合。
* `thirdparty` 其物品关联于 Decentraland 之外的 NFT 的集合。
* `链下` 集合，主要包含新头像的默认物品。

{% hint style="info" %}
尽管 `v1` 集合已弃用，今后不会再创建或更新，但它们仍然有效，其物品仍可使用。
{% endhint %}

#### 第 1 版和第 2 版集合

旧的 `v1` 和当前的 `v2` 集合命名空间的 URN 形式相同：

```
urn:decentraland:<blockchain>:<collections-version>:<contract-address>
```

例如：

```
# 弃用的 v1 空间中的一个集合：
urn:decentraland:mainnet:collections-v1:DCL Test Masks

# v2 社区批准空间中的一个集合：
urn:decentraland:matic:collections-v2:0x25a1d66891d44cdf7b8c45802489c1dea7aadf8b
```

如果 `:<id>` 段追加到末尾，URN 就会变成指向 [指针](https://github.com/decentraland/docs/tree/main/contributor/pointers.md) 集合内某个物品的指针。请参见 [可穿戴物品指针](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/wearables.md#pointers) 和 [表情动作指针](/contributor/contributor-zh/nei-rong/shi-ti-lei-xing/emotes.md#pointers) 了解相关信息。

#### 第三方集合

第三方集合，也称为 [关联可穿戴物品](https://github.com/decentraland/docs/tree/main/contributor/wearables-and-emotes/wearables/linked-wearables.md)，与普通可穿戴物品不同，它们绑定的是 Decentraland 之外已有的 NFT。它们允许玩家在游戏内头像上展示自己收藏中的 NFT。

它们的 URN 看起来是这样的：

```
urn:decentraland:<blockchain>:collections-thirdparty:<third-party-id>:<collection-id>
```

你可以在 [关联可穿戴物品](https://github.com/decentraland/docs/tree/main/contributor/wearables-and-emotes/wearables/linked-wearables.md) 创作者文档中找到大量相关信息。

### 发现集合

内容服务器可以使用以下 [`/lambdas/collections`](https://decentraland.github.io/catalyst-api-specs/#tag/Lambdas/operation/getCollections) 端点为你提供所有已知集合的列表。

响应将是一个包含 `collections` 属性的对象，其中包含一个 URN 和名称数组。例如：

```json
{
  "collections": [
    {
      "id": "urn:decentraland:amoy:collections-v2:0xff5d4ebc6bc1ff7262cab42d3c693d953f4614d2",
      "name": "冬季服装集合"
    },
    // ……还有很多
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/contributor/contributor-zh/nei-rong/collections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
