# Setting up Gem Mine

If you've read our [Setting up Scratch Cards](/competition-docs/minigames/view-minigames/setting-up-scratch-cards.md) article then you will see a lot of parallels between that and this article.&#x20;

### Setting up Gem Mine

Once you've setup an Instant win competition as normal (it can be draft saved, not published)

You will find a Minigames widget under the featured image widget

<figure><img src="/files/Cld7w1SzS3kZbnUQcla2" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Gem Mine can be rebranded to Battleships, Football and other themes
{% endhint %}

Once selected, you will find a new widget above the Instant prize widget

<figure><img src="/files/7Y5ThsyBvE2eJVTxlkyF" alt=""><figcaption></figcaption></figure>

Above you can see there are two Gems, Ruby and Emerald with a lot of Instant tickets you previously setup in the Instant Prize boxes connected to them.

### How does Gem Mine work?

After setting up the Gem Mine in the backend and you have added the gem mine shortcode \[gem\_mine\_prize] to your description you will see the Gem Boxes on the frontend:\
\
![](/files/3LXrAhxZ7hWSpISmQkQx)

These are essentially instant wins like normal. However if they hit the Gem Ticket, they will get all the instants under it.

If someone wins an instant win it will be crossed off and the value under the title will decrease, if the Gem Ticket is hit, it will show like this:\
\
![](/files/npYr426ZOjZLWZcytUMW)

A new order is created with all the remaining tickets and allocated to the winner who hits the Gem Ticket.

The remaining tickets are allocated just like a normal instant win so will integrate with Payouts, show on the Prize History and send the usual emails as normal.

You can also cluster the gems, so for example the Gem Ticket can be an instant win or be connected to another Gem, you can see that in the example below ticket 5 is the Onyx Gem aswell as an Instant Prize in the Sapphire Gem.

<figure><img src="/files/kcuBCEAEOP22VCIlV8NB" alt=""><figcaption></figcaption></figure>

People can hit two Gems in one order, for example 1 and 6. Any Gem Mine wins will be displayed on the Checkout page after payment:

<figure><img src="/files/j5aH459i22iG8z6XRr1B" alt=""><figcaption></figcaption></figure>

Thats it for Gem Mine its a new and fun game mode to keep things interesting and interactive!


---

# 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://competitions.gitbook.io/competition-docs/minigames/view-minigames/setting-up-gem-mine.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.
