> 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/creator/content-creator-zh/jiao-cheng-yu-shi-li/rewards/clap-to-claim-dispenser.md).

# 拍手领取发放器

一种可穿戴物发放器，玩家可在触发区域内做拍手表情来领取。

让玩家在发放器前做拍手表情动作即可领取可穿戴物品。这一机制曾用于 Metaverse 时装周。README 将介绍如何将发放器指向你自己的 Rewards 活动。

## 项目信息

**维护者：** Decentraland

[查看源代码](https://github.com/decentraland/sdk7-goerli-plaza/tree/main/clap-claim-dispenser)

**许可证：** 此目录中未标明许可证。重用前，请查阅上游代码库并咨询维护者，确认适用条款。

## 探索代码

这些链接指向特定的源代码快照，因此随着上游持续开发，这些说明仍然有用。它们是学习参考资料，并非安全评估。

### 玩家站在发放器前时启用发放器

每个发放器都会将其活动存储在 `DispenserComponent`中。发放器前方的球形 `TriggerArea` 会设置 `isActive` ，并在玩家进入时显示“拍手即可领取”提示；玩家离开时则会清除这两项状态。

**项目背景：** 活动 ID 和发放器密钥来自 `ClaimConfig` ，位于 `src/modules/claiming/claimConfig.ts`.

**源代码参考：**

* [`createDispenserWithWearable`](https://github.com/decentraland/sdk7-goerli-plaza/blob/54a07775ee340f0ce22eb23280ef0e9c35f5e386/clap-claim-dispenser/src/modules/dispensers.ts#L28-L89)

### 玩家做出拍手表情动作时领取

`initClapToClaim` 会监听玩家实体上的 `AvatarEmoteCommand` 。当表情动作为 `clap`时，它会等待动画播放完毕，然后从当前处于激活状态的所有发放器领取物品。

**项目背景：** 领取请求和响应的处理遵循与奖励领取发放器示例相同的 Rewards 流程。

**源代码参考：**

* [`initClapToClaim`](https://github.com/decentraland/sdk7-goerli-plaza/blob/54a07775ee340f0ce22eb23280ef0e9c35f5e386/clap-claim-dispenser/src/modules/clapToClaim.ts#L6-L33)


---

# 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/creator/content-creator-zh/jiao-cheng-yu-shi-li/rewards/clap-to-claim-dispenser.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.
