Biome injections
Warning
This worldgen page is still a work in progress. Some Json formats/code examples/features might be missing and will be added in the future.
BiomeInjections allow you to add PlacedFeatures to an already existing biome. In the
future, this will also allow you to modify any other biome property.
Example usage
Here's how you could inject the star_shards_ore PlacedFeature from Machines into all overworld biomes:
BiomeInjections.kt
@OptIn(ExperimentalWorldGen::class)
@Init(stage = InitStage.POST_PACK_PRE_WORLD)
object BiomeInjections : BiomeRegistry by ExampleAddon.registry {
private val OVERWORLD = biomeInjection("overworld")
.biomes(BiomeTags.IS_OVERWORLD)
.feature(Decoration.UNDERGROUND_ORES, PlacedFeatures.ORE_STAR_SHARDS)
.register()
}