World Generation
Crucible can add various features amongst World Generation to include custom assets conditionally placed throughout chunks. It is entirely configured in the worldgen.yml file of any MythicPack(s)
Blocks
The WorldGen feature allows you to configure certain blocks (both vanilla ones and crucible ones), furniture, or other things to be generated in the world.
Blocks to be generated can be added as entries like so in a CustomBlocks section:
CustomBlocks:
ExampleBlock:
Block: TestBlock
Worlds:
- example_world
Environment: NORMAL
Chance: 0.2
Depth:
Min: -50
Max: 20
Vein:
Count: 1
Size: 5
Replace:
- STONE
- DEEPSLATE
Bordering:
- AIR
NotBordering:
- AIR
Conditions: []
Furniture
Additionally, furniture assets can be dynamically placed:
Furniture:
NaturalObject:
Furniture:
- object1
- object2
- object3
OnBlock: '#dirt,#stone'
OnSurface: true
Chance: 0.1
Amount: 1
Colors:
- #FF0000'
- '#00FF00'
- '#0000FF'
Worlds:
- example_world
Biomes:
- minecraft:desert
Structures
Crucible can also paste entire structure schematics into world generation, loaded from <pack>/schematics:
Schematic: schem_name.schem
OnBlock: GRASS_BLOCK
Chance: 0.01
Amount: 1 # defaults to 1
Depth:
Min: 0
Max: 10
Offset:
X: 0
Y: 0
Z: 0
Conditions:
- outside
Worlds:
- example_world
- another_world
Biomes:
- DESERT
- BADLANDS
SlimeChunks: false
OnSurface: true
RandomRotate: true
CenterSchematic: false
Examples
Here is an example plugins/MythicMobs/packs/christmasland_example/worldgen.yml file showcasing the use of all three features:
Schematics:
Bulbs:
Schematic: bulb.schem
OnBlock: AIR
OnSurface: false
Worlds:
- mythicsmp_christmasland
Chance: 0.1
Amount: 1
Depth:
Min: 280
Max: 375
Snowflakes:
Schematic: snowflake.schem
OnBlock: AIR
OnSurface: false
Worlds:
- mythicsmp_christmasland
Biomes:
- 'christmasland:frosty_fjord'
Chance: 0.06
Amount: 1
Depth:
Min: 280
Max: 375
GiantCandyCane:
Schematic: giant_candy_cane.schem
OnBlock: GRASS_BLOCK
OnSurface: true
Worlds:
- mythicsmp_christmasland
Biomes:
- 'christmasland:candy_meadows'
- 'christmasland:christmas_peaks'
Chance: 0.033
Amount: 1
Depth:
Min: 5
Max: 20
Offset:
X: -5
Y: -2
Z: 3
Furniture:
ChristmasCrates:
Furniture:
- ChristmasCrate1
- ChristmasCrate2
- ChristmasCrate3
OnBlock: '#dirt,#stone,SNOW_BLOCK'
OnSurface: true
Chance: 0.1
Amount: 1
Colors:
- '#FF0000'
- '#00FF00'
- '#0000FF'
- '#FFFF00'
- '#00FFFF'
- '#FF00FF'
Worlds:
- mythicsmp_christmasland
Biomes:
- '!christmasland:coal_crags'
CustomBlocks:
GingerbreadOre:
Block: gingerbread_ore
Worlds:
- mythicsmp_christmasland
Environment: NORMAL
Chance: 0.2
Depth:
Min: -50
Max: 20
Vein:
Count: 1
Size: 5
Replace:
- STONE
- DEEPSLATE
Bordering:
- AIR
NotBordering:
- AIR
Conditions: []