| Line 5: |
Line 5: |
| | * Modifying the climate of a biome | | * Modifying the climate of a biome |
| | * Modifying a biome's client effects, such as water color | | * Modifying a biome's client effects, such as water color |
| | + | |
| | + | <big>'''NOTE:'''</big> Forge provides several [[#Builtin_Biome_Modifier_Types|builtin biome modifier types]], so some basic use cases such as adding features or mob spawns to biomes can be done without registering additional serializers. If you are looking to add a mob or feature to a biome, scroll down to the [[#Builtin_Biome_Modifier_Types|Builtin Biome Modifier Types]] section and use one of those pre-existing Biome Modifiers from Forge instead. No custom Biome Modifier implementation needed. |
| | | | |
| | Creating and using biome modifiers involves up to three steps: | | Creating and using biome modifiers involves up to three steps: |
| Line 12: |
Line 14: |
| | # Creating [[#Biome_Modifier_JSONs|biome modifier JSONs]] to define individual biome modifier instances; each json file provides a glob of data to your serializer to produce an instance of a biome modifier type. These can be [[#Datageneration|datagenerated]] if desired. | | # Creating [[#Biome_Modifier_JSONs|biome modifier JSONs]] to define individual biome modifier instances; each json file provides a glob of data to your serializer to produce an instance of a biome modifier type. These can be [[#Datageneration|datagenerated]] if desired. |
| | | | |
| − | Forge provides several [[#Builtin_Biome_Modifier_Types|builtin biome modifier types]], so some basic use cases such as adding features or mob spawns to biomes can be done without registering additional serializers.
| |
| | | | |
| | =Biome Modifier Types= | | =Biome Modifier Types= |
| Line 71: |
Line 72: |
| | } | | } |
| | } | | } |
| − | </syntaxhighlight></biome> | + | </syntaxhighlight> |
| | | | |
| | = Biome Modifier Serializers = | | = Biome Modifier Serializers = |
| Line 226: |
Line 227: |
| | | | |
| | * Avoid using biome modifiers to add vanilla placed features to biomes, as this may cause a feature cycle violation (the game will crash if two biomes have the same two features in their feature lists but in different orders). Placed features can be referenced in biome jsons or added via biome modifiers, but should not be used in both. | | * Avoid using biome modifiers to add vanilla placed features to biomes, as this may cause a feature cycle violation (the game will crash if two biomes have the same two features in their feature lists but in different orders). Placed features can be referenced in biome jsons or added via biome modifiers, but should not be used in both. |
| | + | * Avoid adding the same placed feature with more than one biome modifier, as this can cause feature cycle violations. |