> ## Documentation Index
> Fetch the complete documentation index at: https://docs.znproject.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Generator blocks and chances

> Choose which block identifiers can spawn from a generator and adjust the relative chance assigned to each block in the CCBG configuration.

Add or remove the blocks that can spawn by editing this configuration. To find a block identifier, use the `/setblock` command.

```javascript theme={null}
config.blocks = [
  { identifier: "cobblestone", chance: 14 },
  { identifier: "coal_ore", chance: 13 },
  { identifier: "iron_ore", chance: 13 },
  { identifier: "copper_ore", chance: 12 },
  { identifier: "gold_ore", chance: 11 },
  { identifier: "redstone_ore", chance: 11 },
  { identifier: "lapis_ore", chance: 11 },
  { identifier: "diamond_ore", chance: 10 },
  { identifier: "emerald_ore", chance: 4 },
  { identifier: "ancient_debris", chance: 1 }
]
```

## Example

Make the generator spawn only dirt, grass block, cobblestone, and stone:

```javascript theme={null}
config.blocks = [
  { identifier: "dirt", chance: 25 },
  { identifier: "grass_block", chance: 25 },
  { identifier: "cobblestone", chance: 25 },
  { identifier: "stone", chance: 25 }
]
```

Increase the chance for dirt:

```javascript theme={null}
config.blocks = [
  { identifier: "dirt", chance: 50 },
  { identifier: "grass_block", chance: 30 },
  { identifier: "cobblestone", chance: 10 },
  { identifier: "stone", chance: 10 }
]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.