Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Cobblegen Wiki › Guides › Set up a custom cobblestone generator

Set up a custom cobblestone generator

Edit the cobblegen.toml file

Open cobblegen.toml in your config folder. This is where you define what blocks your generator produces.

Add a generator entry

Each generator needs an id field (the block type) and a weight value (how often it appears relative to others). For example:

`

[[cobblegen]]

id = "minecraft:cobblestone"

weight = 100.0

[[cobblegen]]

id = "minecraft:mossy_cobblestone"

weight = 50.0

`

This creates a generator that produces regular cobblestone twice as often as mossy cobblestone.

Reload without restarting

After saving your changes, run /reload in-game to apply the new configuration immediately. Your existing generator will now produce the blocks you've defined, with each block chosen randomly based on its weight value.

Adjust weights for balance

Higher weight numbers mean that block appears more frequently. Use weights to control the ratio of different blocks. You can use decimal values for fine-tuning.