Generation Stages - World Generation Control Through Game Stages
This mod provides the ability to control the generation of various world elements in Minecraft by linking them to specific stages from the Game Stages mod. You can configure the appearance of biomes, structures, and other objects only after players reach specific development stages.
For example, jungles can start generating only after unlocking the first stage, and trees - only when the player reaches the second stage. This opens up wide possibilities for creating progressive worlds with gradual content unlocking.
Compatibility Features
The mod works with the following generation elements:
- Biomes
- World Features
- Structures
Technical Aspects
The system sets limitations for all players, but if at least one player has the required stage, generation will occur based on their progress, not the one generating chunks. This is important to consider when configuring multiplayer servers.
Usage Examples
Here are code examples for configuring generation through CraftTweaker:
import mods.generationstages.GenerationStages;
GenerationStages.addFeatureStages("test", <resource:minecraft:tree>);
GenerationStages.addFeatureStages("test2", <resource:minecraft:lake>);
GenerationStages.addFeatureStages("test3", <resource:minecraft:flower>);
GenerationStages.addBiomeStages("mytest", <resource:minecraft:jungle>);
Additional methods for working with biomes:
import mods.generationstages.vanilla.SupportMethods;
// Use the /ct dumps biomes command
SupportMethods.getBiomes() as List<ResourceLocation>
SupportMethods.getBiome(ResourceLocation biome) as Biome
// Will get a list of all features
SupportMethods.getFeatures() as List<ResourceLocation>
For Minecraft version 1.20.1, complete documentation on working with the mod is available.