# Collectibles

Just like entity components, we can add special components to players and the game as well. To track points a player can earn, we need to assign a **Player Component**. Head to Linking again, and you will see three new icons appear. These are components for Players, the Game overall, and the Environment.&#x20;

Select the ‘**Player Components**’ tab, press **+** to reveal more options on the right-hand side components menu, and select ‘**Score**.’

![](/files/MCMY943qwT6kup7ZJbqE)

Place any entity and add the **‘Interact’** component to it. You can also change the text that appears when the player hovers over the item in-game, so for collectibles it’s best just to put ‘Collect.’

Now create a link from the collectible; select ‘**Interacted**’ and link to the players icon. Complete the link with ‘**Gain Score**,’ filtering so only the player that interacted gets points.

![](/files/YvSSajcyjxOjAFXLqhEO)

![](/files/67ZIqeWztytZ5nIjM5M6)

{% hint style="info" %}
***Tip:*** By default, points go up by 100 whenever you collect something, so make sure your final score is large enough to accommodate this!
{% endhint %}

![](/files/ilsMXBo2BqPBcz0pkdqc)

To finish it out, select ‘**Yes**’ for ‘**Win by reaching**.’ Now it’s a race to see who can collect the most first!


---

# 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.mutate.games/guides/creating-game-logic-in-mutate/collectibles.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.
