Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ModBiomeMaker {
- public static Biome makeStrawberryFieldBiome() {
- MobSpawnInfo.Builder mobspawninfo$builder = new MobSpawnInfo.Builder();
- BiomeGenerationSettings.Builder biomegenerationsettings$builder = (new BiomeGenerationSettings.Builder()).withSurfaceBuilder(ConfiguredSurfaceBuilders.field_244178_j);
- biomegenerationsettings$builder.withStructure(StructureFeatures.RUINED_PORTAL);
- DefaultBiomeFeatures.withStrongholdAndMineshaft(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withCavesAndCanyons(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withLavaAndWaterLakes(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withMonsterRoom(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withNoiseTallGrass(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withCommonOverworldBlocks(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withOverworldOres(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withDisks(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withPlainGrassVegetation(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withLavaAndWaterSprings(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withFrozenTopLayer(biomegenerationsettings$builder);
- biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_STRAWBERRY);
- biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_FANCY_STRAWBERRY);
- biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_SWEET);
- biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_FANCY_SWEET);
- biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.OAK);
- addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(ModFeatures.STRAWBERRY_BUSH_CONFIG).withPlacement(Placement.COUNT.configure(new FeatureSpreadConfig(20))));
- addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(ModFeatures.PINK_DAISY_BUSH_CONFIG).withPlacement(Placement.COUNT.configure(new FeatureSpreadConfig(8))));
- addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(ModFeatures.WHITE_DAISY_BUSH_CONFIG).withPlacement(Placement.COUNT.configure(new FeatureSpreadConfig(8))));
- return (new Biome.Builder()).precipitation(Biome.RainType.RAIN).category(Biome.Category.PLAINS)
- .depth(0.125F)
- .scale(0.05F)
- .temperature(0.8F)
- .downfall(0.4F)
- .setEffects((new BiomeAmbience.Builder())
- .setWaterColor(37008)
- .setWaterFogColor(14392)
- .setFogColor(12638463)
- .withSkyColor(ModFeatures.getSkyColorWithTemperatureModifier()).setMoodSound(MoodSoundAmbience.DEFAULT_CAVE).build()).withMobSpawnSettings(mobspawninfo$builder.copy()).withGenerationSettings(biomegenerationsettings$builder.build()).build();
- }
- public static Biome makeLavenderMeadowBiome() {
- MobSpawnInfo.Builder mobspawninfo$builder = new MobSpawnInfo.Builder();
- DefaultBiomeFeatures.withSpawnsWithHorseAndDonkey(mobspawninfo$builder);
- BiomeGenerationSettings.Builder biomegenerationsettings$builder = (new BiomeGenerationSettings.Builder()).withSurfaceBuilder(ConfiguredSurfaceBuilders.field_244178_j);
- biomegenerationsettings$builder.withStructure(StructureFeatures.RUINED_PORTAL);
- DefaultBiomeFeatures.withStrongholdAndMineshaft(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withCavesAndCanyons(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withLavaAndWaterLakes(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withMonsterRoom(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withNoiseTallGrass(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withCommonOverworldBlocks(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withOverworldOres(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withDisks(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withPlainGrassVegetation(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withLavaAndWaterSprings(biomegenerationsettings$builder);
- DefaultBiomeFeatures.withFrozenTopLayer(biomegenerationsettings$builder);
- return (new Biome.Builder()).precipitation(Biome.RainType.RAIN).category(Biome.Category.PLAINS)
- .depth(0.125F)
- .scale(0.05F)
- .temperature(0.8F)
- .downfall(0.4F)
- .setEffects((new BiomeAmbience.Builder())
- .setWaterColor(37008)
- .setWaterFogColor(14392)
- .setFogColor(12638463)
- .withSkyColor(ModFeatures.getSkyColorWithTemperatureModifier()).setMoodSound(MoodSoundAmbience.DEFAULT_CAVE).build()).withMobSpawnSettings(mobspawninfo$builder.copy()).withGenerationSettings(biomegenerationsettings$builder.build()).build();
- }
- public static void addFeature(GenerationStage.Decoration decorationStage, ConfiguredFeature<?, ?> featureIn) {
- if (featureIn.feature == Feature.FLOWER) {
- addFeature(decorationStage, featureIn);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement