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
  • Enabling Custom Generator
  • Left Block and Right Block
  • Generator Blocks
  • Example Code
  1. Configuration

Custom Generator

Do you want a custom generator with the blocks you want? Yes, you can! To enable this, simply set config.enableCustomGenerator from false to true. Then, you can edit the left block, right block, and which blocks it spawns in this configuration.

For your information, you need to break a block in the middle first to make the generator work. You can use all types of blocks. If there is no block, just place one.

Enabling Custom Generator

You can enable it by changing

config.enableCustomGenerator = false

to

config.enableCustomGenerator = true

Left Block and Right Block

{
    left_block: ["LEFT BLOCK"], 
    right_block: ["RIGHT BLOCK"],
    under_block: [],
    blocks: [
        // ...
    ]
}

To set left block to be grass block you can change the code to this

{
    left_block: ["minecraft:grass_block"], 
    right_block: ["RIGHT BLOCK"],
    under_block: [],
    blocks: [
        // ...
    ]
}

you need to put minecraft: before the block identifier if the block is from vanilla minecraft To set right to be stone you can change the code to this

{
    left_block: ["minecraft:grass_block"], 
    right_block: ["minecraft:stone"],
    blocks: [
        // ...
    ]
}

To set under block to be netherite block you can change the code to this, but if you don't want to leave it to be []

{
    left_block: ["minecraft:grass_block"], 
    right_block: ["minecraft:stone"],
    under_block: ["netherite_block"],
    blocks: [
        // ...
    ]
}

Generator Blocks

For more information adding, changing and removing block from generator:

Example Code

config.customGenerator = [
	{
		left_block: ["minecraft:stone"],
		right_block: ["minecraft:dripstone_block"],
		under_block: [],
		blocks: [
			{ identifier: "stone", chance: 14 },
			{ identifier: "coal_block", chance: 13 },
			{ identifier: "iron_block", chance: 13 },
			{ identifier: "copper_block", chance: 12 },
			{ identifier: "gold_block", chance: 11 },
			{ identifier: "redstone_block", chance: 11 },
			{ identifier: "lapis_block", chance: 11 },
			{ identifier: "diamond_block", chance: 10 },
			{ identifier: "emerald_block", chance: 5 }
		],
		tools: [
			"minecraft:iron_pickaxe",
			"minecraft:gold_pickaxe",
			"minecraft:diamond_pickaxe",
			"minecraft:netherite_pickaxe",
		]
	},
	{
		left_block: ["minecraft:flowing_water", "minecraft:water", "WATERLOGGED"],
		right_block: ["minecraft:flowing_lava", "minecraft:lava"],
		under_block: ["minecraft:netherite_block"],
		blocks: [
			{ identifier: "stone", chance: 20 },
			{ identifier: "iron_block", chance: 20 },
			{ identifier: "gold_block", chance: 17.5 },
			{ identifier: "diamond_block", chance: 17.5 },
			{ identifier: "emerald_block", chance: 15 },
			{ identifier: "netherite_block", chance: 10 }
		],
		tools: [
			"minecraft:iron_pickaxe",
			"minecraft:gold_pickaxe",
			"minecraft:diamond_pickaxe",
			"minecraft:netherite_pickaxe",
		]
	}
]
PreviousPer Dimension GeneratorNextAdding Blocks from Addons

Last updated 11 months ago

Generator Blocks and Chances