# 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 }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hirzigamingyt.gitbook.io/configuration/generator-blocks-and-chances.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
