Advertisement
jayhillx

ModBiomeMaker

Dec 9th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. import com.meepshadow.mysticsbiomes.core.registry.ModFeatures;
  2. import net.minecraft.world.biome.*;
  3. import net.minecraft.world.gen.GenerationStage;
  4. import net.minecraft.world.gen.blockplacer.SimpleBlockPlacer;
  5. import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
  6. import net.minecraft.world.gen.feature.BlockClusterFeatureConfig;
  7. import net.minecraft.world.gen.feature.Feature;
  8. import net.minecraft.world.gen.feature.Features;
  9. import net.minecraft.world.gen.feature.structure.StructureFeatures;
  10. import net.minecraft.world.gen.placement.Placement;
  11. import net.minecraft.world.gen.surfacebuilders.ConfiguredSurfaceBuilders;
  12.  
  13. public class ModBiomeMaker {
  14.  
  15. public static Biome makeStrawberryFieldsBiome() {
  16. MobSpawnInfo.Builder mobspawninfo$builder = new MobSpawnInfo.Builder();
  17. DefaultBiomeFeatures.withSpawnsWithHorseAndDonkey(mobspawninfo$builder);
  18.  
  19. BiomeGenerationSettings.Builder biomegenerationsettings$builder = (new BiomeGenerationSettings.Builder()).withSurfaceBuilder(ConfiguredSurfaceBuilders.field_244178_j);
  20.  
  21. DefaultBiomeFeatures.withStrongholdAndMineshaft(biomegenerationsettings$builder);
  22. biomegenerationsettings$builder.withStructure(StructureFeatures.RUINED_PORTAL);
  23. DefaultBiomeFeatures.withCavesAndCanyons(biomegenerationsettings$builder);
  24. DefaultBiomeFeatures.withLavaAndWaterLakes(biomegenerationsettings$builder);
  25. DefaultBiomeFeatures.withMonsterRoom(biomegenerationsettings$builder);
  26. DefaultBiomeFeatures.withNoiseTallGrass(biomegenerationsettings$builder);
  27.  
  28. DefaultBiomeFeatures.withCommonOverworldBlocks(biomegenerationsettings$builder);
  29. DefaultBiomeFeatures.withOverworldOres(biomegenerationsettings$builder);
  30. DefaultBiomeFeatures.withDisks(biomegenerationsettings$builder);
  31. DefaultBiomeFeatures.withPlainGrassVegetation(biomegenerationsettings$builder);
  32.  
  33. DefaultBiomeFeatures.withLavaAndWaterSprings(biomegenerationsettings$builder);
  34. DefaultBiomeFeatures.withFrozenTopLayer(biomegenerationsettings$builder);
  35.  
  36. biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_STRAWBERRY);
  37. biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_FANCY_STRAWBERRY);
  38. biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_SWEET);
  39. biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, ModFeatures.TREES_FANCY_SWEET);
  40. biomegenerationsettings$builder.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.OAK);
  41. Feature.RANDOM_PATCH.withConfiguration((new BlockClusterFeatureConfig.Builder(new SimpleBlockStateProvider(ModFeatures.STRAWBERRY_BUSH), SimpleBlockPlacer.PLACER)).tries(64).build());
  42. this.withFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.withConfiguration(ModFeatures.STRAWBERRY_BUSH_CONFIG), SimpleBlockPlacer.PLACER).tries(64).build();
  43.  
  44. 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();
  45. }
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement