yog_registry/worldgen.rs
1//! World generation: features a mod puts in biomes.
2
3/// A placed feature (`mymod:mythril_ore`, the mod's datapack's) added to
4/// biomes at a generation step — what an ore `.ydef` makes. Forge and
5/// NeoForge read the biome modifiers `yog build` writes; Fabric's host adds
6/// these through its biome API.
7#[derive(yog_data::Schema, Debug, Clone, PartialEq)]
8pub struct BiomeFeature {
9 /// The placed feature's id.
10 pub feature: String,
11 /// The tag of biomes it goes in (`minecraft:is_overworld`).
12 pub biomes: String,
13 /// The generation step (`underground_ores`, `vegetal_decoration`, …).
14 pub step: String,
15}