Biome temperature fix (WIP)
This commit is contained in:
parent
524b638916
commit
b72da7d1bf
3 changed files with 30 additions and 1 deletions
|
@ -68,6 +68,7 @@ public class BiomeDefinition {
|
|||
private float genChance = 1F;
|
||||
private boolean hasCaves = true;
|
||||
private boolean isCaveBiome = false;
|
||||
private float temperature = 1F;
|
||||
|
||||
private ConfiguredSurfaceBuilder<?> surface;
|
||||
|
||||
|
@ -117,6 +118,11 @@ public class BiomeDefinition {
|
|||
this.depth = depth;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BiomeDefinition setTemperature(float temperature) {
|
||||
this.temperature = temperature;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BiomeDefinition addMobSpawn(EntityType<?> type, int weight, int minGroupSize, int maxGroupSize) {
|
||||
ResourceLocation eID = Registry.ENTITY_TYPE.getKey(type);
|
||||
|
@ -263,7 +269,7 @@ public class BiomeDefinition {
|
|||
.biomeCategory(isCaveBiome ? BiomeCategory.NONE : BiomeCategory.THEEND)
|
||||
.depth(depth)
|
||||
.scale(0.2F)
|
||||
.temperature(2.0F)
|
||||
.temperature(temperature)
|
||||
.downfall(0.0F)
|
||||
.specialEffects(effects.build())
|
||||
.mobSpawnSettings(spawnSettings.build())
|
||||
|
|
|
@ -11,6 +11,7 @@ public class BiomeIceStarfield extends EndBiome {
|
|||
public BiomeIceStarfield() {
|
||||
super(new BiomeDefinition("ice_starfield")
|
||||
.setFogColor(224, 245, 254)
|
||||
.setTemperature(0F)
|
||||
.setFogDensity(2.2F)
|
||||
.setFoliageColor(193, 244, 244)
|
||||
.setGenChance(0.25F)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue