Wiki 9Minecraft Wiki 9Minecraft

Set up a custom cobblestone generator

Java EditionModGuides 4FAQ 10Related mods 60
DownloadCobbleGen Mod

Get the files on 9Minecraft

Contents (4)
  1. Edit the cobblegen.toml file
  2. Add a generator entry
  3. Reload without restarting
  4. Adjust weights for balance

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.

More guides for this mod