# Generator Blocks and Chances

You can add or remove which blocks will spawn in this configuration. To find block identifier you can use `/setblock` command

<figure><img src="https://media.forgecdn.net/attachments/description/1035052/description_76c00c5a-e800-4b4d-80b0-fbb8a9ae160b.jpg" alt=""><figcaption></figcaption></figure>

```javascript
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 only spawn `dirt`, `grass block`, `cobblestone` and `stone`

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

Make dirt more higher chance to spawn by increasing the chance

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