Wiki 9Minecraft Wiki 9Minecraft

Make your stone generator produce multiple block types

Java EditionModGuides 4FAQ 10Related mods 60
DownloadCobbleGen Mod

Get the files on 9Minecraft

Contents (3)
  1. Understand the weight system
  2. Configure multiple outputs
  3. Test and adjust

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.

More guides for this mod