CCBG
  • Custom Cobblestone and Basalt Generator
  • Download
  • Discord
  • installations
    • Enabling Beta APIs
    • Configuration File
    • Installing the pack
  • Configuration
    • Generator
    • Generator Event
    • Tools
    • Block Spawn Delay
    • Teleport Items and XP
    • Particles
    • Sounds
    • Players and Tags
    • Generator Blocks and Chances
    • Summon Mobs
    • Per Dimension Generator
    • Custom Generator
  • additional information
    • Adding Blocks from Addons
    • Adding Tools from Addons
    • Adding Mobs from Addons
Powered by GitBook
On this page
  1. Configuration

Generator Blocks and Chances

PreviousPlayers and TagsNextSummon Mobs

Last updated 11 months ago

You can add or remove which blocks will spawn in this configuration. To find block identifier you can use /setblock command

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

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

config.blocks = [
	{ identifier: "dirt", chance: 50 },
	{ identifier: "grass_block", chance: 30 },
	{ identifier: "cobblestone", chance: 10 },
	{ identifier: "stone", chance: 10 }
]