# WorldClass.server_onVoxelDestruction

Called when a cluster of voxels are destroyed by a player or creation

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Server

``` { .lua .api-signature }
WorldClass:server_onVoxelDestruction( densityLoss, positions )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
| `densityLoss` | table | A table containing information about density loss for all materials. |
| `positions` | table | A table containing all positions where voxels were lost for each material. |
