# Mines

<figure><img src="https://2632487102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCCMvOKTEzMEbJlMFpfJ%2Fuploads%2FAI8h0SLbvT4WyJ8aGkZD%2FVid%C3%A9o%20sans%20titre%20%E2%80%90%20R%C3%A9alis%C3%A9e%20avec%20Clipchamp%20(1).gif?alt=media&#x26;token=d5967c5a-8a90-42cb-aa7f-eeb207950a4a" alt=""><figcaption></figcaption></figure>

<details>

<summary>Overview</summary>

&#x20;                                            <img src="https://2632487102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCCMvOKTEzMEbJlMFpfJ%2Fuploads%2FLPhdD0Vq1GycLfOvEQWJ%2Fimage.png?alt=media&#x26;token=e261ff8a-9ffc-4f10-869e-a0a93f17a37c" alt="" data-size="original">

</details>

You can always start with `/mines help` to get the help message with a list of the necessary commands.

<figure><img src="https://2632487102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCCMvOKTEzMEbJlMFpfJ%2Fuploads%2FqQDjmGRYSmwfoxhChdDl%2Fimage.png?alt=media&#x26;token=7c14859f-4685-45fe-9c16-da189a5ff9d6" alt="" width="490"><figcaption></figcaption></figure>

To create a mine:

1. Select a WorldEdit region using the WorldEdit plugin’s wand. Select `pos1` and `pos2`.
2. Execute `/mine create <name> <delay> <isSilent>`. The location where you execute the command will be assigned as the respawn point for the mine.

Let’s break down the command:

* `<name>`: The name used for the mine in the config files and messages.
* `<delay>`: How long the mine will take to reset.
* `<isSilent>`: Whether the server will broadcast a message to all players when the mine resets.

3. Now, to add materials to the mine, use `/mine addMaterial <mine-name> <material> <chance>`.

Let’s break down this command:

* `<mine-name>`: The name of the mine to which you want to add the material.
* `<material>`: The type of material you want to add to the mine.
* `<chance>`: The probability (in percentage) that the material will appear in the mine.

**Respawn System:**

What if the player is inside the mine and it suddenly gets auto-reset? The system will teleport the player to the mine respawn point.

If you’re still unsure, here’s an explanation video.

{% embed url="<https://www.youtube.com/watch?v=p18_i6Klfsc>" %}

***

<table><thead><tr><th width="318">command</th><th width="380">permission</th></tr></thead><tbody><tr><td>/mine help</td><td>skymines.command.mines.help</td></tr><tr><td>/mine create</td><td>skymines.command.mines.create</td></tr><tr><td>/mine addMaterials</td><td>skymines.command.mines.addmaterial</td></tr><tr><td>/mine removeMaterials</td><td>skymines.command.mines.removematerial</td></tr><tr><td>/mine delete</td><td>skymines.command.mines.delete</td></tr><tr><td>/mine list</td><td>skymines.command.mines.list</td></tr></tbody></table>
