> 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/tutorials-and-examples/rewards/clap-to-claim-dispenser.md).

# Clap-to-claim dispenser

A wearable dispenser that players claim by doing the clap emote in a trigger area.

Let players claim a wearable by doing the clap emote in front of a dispenser, a mechanic used at Metaverse Fashion Week. The README walks through pointing the dispenser at your own Rewards campaign.

## Project information

**Maintained by:** Decentraland

[View source](https://github.com/decentraland/sdk7-goerli-plaza/tree/main/clap-claim-dispenser)

**License:** Not identified in this catalog. Consult the upstream repository and maintainer for applicable terms before reuse.

## Explore the code

These links point to a specific source snapshot so the explanations remain useful as upstream development continues. They are learning references, not a security assessment.

### Arm a dispenser while the player stands in front of it

Each dispenser stores its campaign in a `DispenserComponent`. A sphere `TriggerArea` in front of it sets `isActive` and shows a "clap to claim" toast on enter, and clears both on exit.

**Project context:** The campaign ID and dispenser key come from `ClaimConfig` in `src/modules/claiming/claimConfig.ts`.

**Source references:**

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

### Claim when the player plays the clap emote

`initClapToClaim` watches `AvatarEmoteCommand` on the player entity. When the emote is `clap`, it waits for the animation and claims from every dispenser that is currently active.

**Project context:** The claim request and response handling follow the same Rewards flow as the reward claim dispenser example.

**Source references:**

* [`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/tutorials-and-examples/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.
