Cobblegen Wiki › Guides › Make your stone generator produce multiple block types
Make your stone generator produce multiple block types
Understand the weight system
CobbleGen uses a weighted random selection. Each block type you add gets a weight value—blocks with higher weights are selected more often. The actual probability is calculated as each block's weight divided by the total of all weights.
Configure multiple outputs
Add multiple [[cobblegen]] entries to your cobblegen.toml file, each with a different id and weight:
`
[[cobblegen]]
id = "minecraft:stone"
weight = 70.0
[[cobblegen]]
id = "minecraft:deepslate"
weight = 20.0
[[cobblegen]]
id = "minecraft:granite"
weight = 10.0
`
Test and adjust
Run /reload to apply changes. Let your generator run for a while and observe the output ratio. If you want more variety, lower the dominant block's weight or increase others. If one block should be rare, give it a much lower weight value.