Tweaked which biomes villages can spawn in
This commit is contained in:
parent
ca83293303
commit
36369fc9e0
16 changed files with 27 additions and 0 deletions
|
@ -42,6 +42,8 @@ public class BiomeGenBrushland extends BOPBiome
|
|||
this.setTemperatureRainfall(1.2F, 0.1F);
|
||||
this.addWeight(BOPClimates.SAVANNA, 10);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
//sand
|
||||
this.addGenerator("sand", GeneratorStage.SAND_PASS2, (new GeneratorWaterside.Builder()).amountPerChunk(4).maxRadius(7).with(Blocks.sand.getDefaultState()).create());
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ public class BiomeGenChaparral extends BOPBiome
|
|||
this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 1, 2, 6));
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
// sand
|
||||
this.addGenerator("sand", GeneratorStage.SAND_PASS2, (new GeneratorWaterside.Builder()).amountPerChunk(3).maxRadius(7).with(Blocks.sand.getDefaultState()).create());
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ public class BiomeGenCoralReef extends BOPBiome
|
|||
this.setColor(18285);
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = false;
|
||||
this.canGenerateRivers = false;
|
||||
|
||||
clearWeights();
|
||||
|
||||
|
|
|
@ -37,6 +37,8 @@ public class BiomeGenFlowerField extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.WARM_TEMPERATE, 2);
|
||||
|
||||
this.canGenerateVillages = false;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
// flowers
|
||||
|
|
|
@ -45,6 +45,8 @@ public class BiomeGenGrassland extends BOPBiome {
|
|||
this.addWeight(BOPClimates.COOL_TEMPERATE, 7);
|
||||
this.addWeight(BOPClimates.WET_TEMPERATE, 3);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 2, 6));
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@ public class BiomeGenGrove extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.COOL_TEMPERATE, 7);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
// other plants
|
||||
|
|
|
@ -51,6 +51,8 @@ public class BiomeGenHeathland extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.MEDITERANEAN, 10);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
// TODO: why is there SO many horses?
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 1, 2, 6));
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ public class BiomeGenLavenderFields extends BOPBiome
|
|||
this.setTemperatureRainfall(0.6F, 0.7F);
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = false;
|
||||
|
||||
this.addWeight(BOPClimates.MEDITERANEAN, 3);
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ public class BiomeGenLushDesert extends BOPBiome
|
|||
this.fillerBlock = Blocks.hardened_clay.getDefaultState();
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.addWeight(BOPClimates.HOT_DESERT, 5);
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ public class BiomeGenMeadow extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.COOL_TEMPERATE, 10);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntitySnail.class, 6, 1, 2));
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ public class BiomeGenOutback extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.HOT_DESERT, 7);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.clear();
|
||||
this.spawnableWaterCreatureList.clear();
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@ public class BiomeGenPrairie extends BOPBiome
|
|||
|
||||
this.addWeight(BOPClimates.WARM_TEMPERATE, 7);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 1, 2, 6));
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
|
|
|
@ -46,6 +46,8 @@ public class BiomeGenShrubland extends BOPBiome
|
|||
this.addWeight(BOPClimates.DRY_TEMPERATE, 10);
|
||||
this.addWeight(BOPClimates.MEDITERANEAN, 5);
|
||||
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 2, 6));
|
||||
this.spawnableCreatureList.add(new SpawnListEntry(EntityButterfly.class, 6, 2, 4));
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ public class BiomeGenSteppe extends BOPBiome
|
|||
this.setTemperatureRainfall(0.7F, 0.05F);
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.addWeight(BOPClimates.DRY_TEMPERATE, 5);
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ public class BiomeGenWetland extends BOPBiome
|
|||
this.canGenerateVillages = false;
|
||||
|
||||
this.addWeight(BOPClimates.WET_TEMPERATE, 7);
|
||||
this.addWeight(BOPClimates.COLD_SWAMP, 5);
|
||||
|
||||
this.spawnableWaterCreatureList.clear();
|
||||
this.spawnableMonsterList.add(new SpawnListEntry(EntitySlime.class, 10, 1, 3));
|
||||
|
|
|
@ -43,6 +43,7 @@ public class BiomeGenXericShrubland extends BOPBiome
|
|||
this.fillerBlock = Blocks.sand.getDefaultState();
|
||||
|
||||
this.canSpawnInBiome = false;
|
||||
this.canGenerateVillages = true;
|
||||
|
||||
this.addWeight(BOPClimates.HOT_DESERT, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue