Cities fix
This commit is contained in:
parent
e64035817b
commit
aecd3c9756
3 changed files with 5 additions and 2 deletions
|
@ -4,6 +4,7 @@ import net.minecraft.entity.EntityType;
|
||||||
import net.minecraft.particle.ParticleTypes;
|
import net.minecraft.particle.ParticleTypes;
|
||||||
import net.minecraft.world.gen.GenerationStep.Feature;
|
import net.minecraft.world.gen.GenerationStep.Feature;
|
||||||
import net.minecraft.world.gen.feature.ConfiguredFeatures;
|
import net.minecraft.world.gen.feature.ConfiguredFeatures;
|
||||||
|
import net.minecraft.world.gen.feature.ConfiguredStructureFeatures;
|
||||||
import ru.betterend.registry.BlockRegistry;
|
import ru.betterend.registry.BlockRegistry;
|
||||||
import ru.betterend.registry.EntityRegistry;
|
import ru.betterend.registry.EntityRegistry;
|
||||||
import ru.betterend.registry.FeatureRegistry;
|
import ru.betterend.registry.FeatureRegistry;
|
||||||
|
@ -25,6 +26,7 @@ public class BiomeChorusForest extends EndBiome {
|
||||||
.addFeature(Feature.VEGETAL_DECORATION, ConfiguredFeatures.CHORUS_PLANT)
|
.addFeature(Feature.VEGETAL_DECORATION, ConfiguredFeatures.CHORUS_PLANT)
|
||||||
.addFeature(Feature.VEGETAL_DECORATION, ConfiguredFeatures.CHORUS_PLANT)
|
.addFeature(Feature.VEGETAL_DECORATION, ConfiguredFeatures.CHORUS_PLANT)
|
||||||
.addFeature(FeatureRegistry.CHORUS_GRASS)
|
.addFeature(FeatureRegistry.CHORUS_GRASS)
|
||||||
|
.addStructureFeature(ConfiguredStructureFeatures.END_CITY)
|
||||||
.addMobSpawn(EntityRegistry.END_SLIME, 5, 1, 2)
|
.addMobSpawn(EntityRegistry.END_SLIME, 5, 1, 2)
|
||||||
.addMobSpawn(EntityType.ENDERMAN, 50, 1, 4));
|
.addMobSpawn(EntityType.ENDERMAN, 50, 1, 4));
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,8 +189,7 @@ public class BiomeDefinition {
|
||||||
Builder effects = new Builder();
|
Builder effects = new Builder();
|
||||||
|
|
||||||
mobs.forEach((spawn) -> {
|
mobs.forEach((spawn) -> {
|
||||||
spawnSettings.spawn(spawn.type.getSpawnGroup(),
|
spawnSettings.spawn(spawn.type.getSpawnGroup(), new SpawnSettings.SpawnEntry(spawn.type, spawn.weight, spawn.minGroupSize, spawn.maxGroupSize));
|
||||||
new SpawnSettings.SpawnEntry(spawn.type, spawn.weight, spawn.minGroupSize, spawn.maxGroupSize));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
generationSettings.surfaceBuilder(surface == null ? ConfiguredSurfaceBuilders.END : surface);
|
generationSettings.surfaceBuilder(surface == null ? ConfiguredSurfaceBuilders.END : surface);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package ru.betterend.world.biome;
|
package ru.betterend.world.biome;
|
||||||
|
|
||||||
import net.minecraft.entity.EntityType;
|
import net.minecraft.entity.EntityType;
|
||||||
|
import net.minecraft.world.gen.feature.ConfiguredStructureFeatures;
|
||||||
import ru.betterend.registry.BlockRegistry;
|
import ru.betterend.registry.BlockRegistry;
|
||||||
import ru.betterend.registry.EntityRegistry;
|
import ru.betterend.registry.EntityRegistry;
|
||||||
import ru.betterend.registry.FeatureRegistry;
|
import ru.betterend.registry.FeatureRegistry;
|
||||||
|
@ -28,6 +29,7 @@ public class BiomeFoggyMushroomland extends EndBiome {
|
||||||
.addFeature(FeatureRegistry.DENSE_VINE)
|
.addFeature(FeatureRegistry.DENSE_VINE)
|
||||||
.addFeature(FeatureRegistry.END_LILY)
|
.addFeature(FeatureRegistry.END_LILY)
|
||||||
.addFeature(FeatureRegistry.BUBBLE_CORAL)
|
.addFeature(FeatureRegistry.BUBBLE_CORAL)
|
||||||
|
.addStructureFeature(ConfiguredStructureFeatures.END_CITY)
|
||||||
.addMobSpawn(EntityRegistry.DRAGONFLY, 80, 2, 5)
|
.addMobSpawn(EntityRegistry.DRAGONFLY, 80, 2, 5)
|
||||||
.addMobSpawn(EntityRegistry.END_SLIME, 10, 1, 2)
|
.addMobSpawn(EntityRegistry.END_SLIME, 10, 1, 2)
|
||||||
.addMobSpawn(EntityType.ENDERMAN, 10, 1, 2));
|
.addMobSpawn(EntityType.ENDERMAN, 10, 1, 2));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue