Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.meepshadow.mysticsbiomes.core.registry.ModFeatures;
- import net.minecraft.world.biome.*;
- import net.minecraft.world.gen.GenerationStage;
- import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer;
- import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
- import net.minecraft.world.gen.feature.BlockClusterFeatureConfig;
- import net.minecraft.world.gen.feature.Feature;
- import net.minecraft.world.gen.feature.Features;
- import net.minecraft.world.gen.feature.structure.StructureFeatures;
- import net.minecraft.world.gen.placement.Placement;
- import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilders;
- public class ModBiomeMaker {
- public static Biome makeStrawberryFieldsBiome() {
- MobSpawnInfo.Builder mobspawninfo$builder = new MobSpawnInfo.Builder();
- DefaultBiomeFeatures.withSpawnsWithHorseAndDonkey(mobspawninfo$builder);
- BiomeGenerationSettings.Builder biomegenerationsettings$builder = (new BiomeGenerationSettings.Builder()).withSurfaceBuilder(ConfiguredSurfaceBuilders.field_244178_j);
- DefaultBiomeFeatures.withStrongholdAndMineshaft(biomegenerationsettings$builder);
- biomegenerationsettings$builder.withStructure(StructureFeatures.RUINED_PORTAL);
- 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);
- Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(ModFeatures.STRAWBERRY_BUSH), SimpleBlockPlacer.PLACER)).tries(64).build());
- this.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(ModFeatures.STRAWBERRY_BUSH_CONFIG), SimpleBlockPlacer.PLACER).tries(64).build();
- 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).setMoodSound(MoodSoundAmbience.DEFAULT_CAVE).build()).withMobSpawnSettings(mobspawninfo$builder.copy()).withGenerationSettings(biomegenerationsettings$builder.build()).build();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement