# WorldClass.server_onMining

Called when the mining manager has filtered a batch of voxel loot candidates.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

``` { .lua .api-signature }
WorldClass:server_onMining( spawns )
```

[Open the full Game reference](../Game-Script-Environment/Classes/WorldClass.md#server_onmining)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
| `spawns` | table | An array of \{ position = [Vec3](../Game-Script-Environment/Userdata/Vec3.md), spawnId = integer \} describing where and what to spawn. |
