diff --git a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityAechorPlant.java b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityAechorPlant.java index 6694104..84af665 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityAechorPlant.java +++ b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityAechorPlant.java @@ -50,8 +50,9 @@ public class EntityAechorPlant extends EntityAetherAnimal { } @Override - public int getMaxSpawnedInChunk() { - return 3; + public boolean getCanSpawnHere() + { + return this.rand.nextInt(15) == 0 && super.getCanSpawnHere(); } @Override diff --git a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityCockatrice.java b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityCockatrice.java index f3fa257..2ec2085 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityCockatrice.java +++ b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityCockatrice.java @@ -48,7 +48,7 @@ public class EntityCockatrice extends EntityMob { @Override public boolean getCanSpawnHere() { - return this.rand.nextInt(25) == 0 && super.getCanSpawnHere(); + return this.rand.nextInt(5) == 0 && super.getCanSpawnHere(); } @Override diff --git a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityWhirlwind.java b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityWhirlwind.java index 94b32ff..b70b774 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityWhirlwind.java +++ b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityWhirlwind.java @@ -345,7 +345,7 @@ public class EntityWhirlwind extends EntityMob { int j = MathHelper.floor_double(this.boundingBox.minY); int k = MathHelper.floor_double(this.posZ); - return this.rand.nextInt(450) == 0 && this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.worldObj.getBlockLightValue(i, j, k) > 8 && this.worldObj.checkNoEntityCollision(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox); + return this.rand.nextInt(15) == 0 && this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.worldObj.getBlockLightValue(i, j, k) > 8 && this.worldObj.checkNoEntityCollision(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox); } public EntityPlayer findClosestPlayer() { diff --git a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityZephyr.java b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityZephyr.java index 915a452..edbe5bc 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityZephyr.java +++ b/src/main/java/com/gildedgames/the_aether/entities/hostile/EntityZephyr.java @@ -40,7 +40,7 @@ public class EntityZephyr extends EntityFlying implements IMob { int j = MathHelper.floor_double(this.boundingBox.minY); int k = MathHelper.floor_double(this.posZ); - return this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.rand.nextInt(85) == 0 && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox) && this.worldObj.getBlockLightValue(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.boundingBox.minY), MathHelper.floor_double(this.posZ)) > 8 && super.getCanSpawnHere(); + return this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.rand.nextInt(25) == 0 && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox) && this.worldObj.getBlockLightValue(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.boundingBox.minY), MathHelper.floor_double(this.posZ)) > 8 && super.getCanSpawnHere(); } @Override diff --git a/src/main/java/com/gildedgames/the_aether/entities/passive/EntityAerwhale.java b/src/main/java/com/gildedgames/the_aether/entities/passive/EntityAerwhale.java index dc40977..e04a7e9 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/passive/EntityAerwhale.java +++ b/src/main/java/com/gildedgames/the_aether/entities/passive/EntityAerwhale.java @@ -56,7 +56,7 @@ public class EntityAerwhale extends EntityFlying { int j = MathHelper.floor_double(this.boundingBox.minY); int k = MathHelper.floor_double(this.posZ); - return this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.rand.nextInt(65) == 0 && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox) && this.worldObj.getBlockLightValue(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.boundingBox.minY), MathHelper.floor_double(this.posZ)) > 8 && super.getCanSpawnHere(); + return this.worldObj.getBlock(i, j - 1, k) == BlocksAether.aether_grass && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox) && this.worldObj.getBlockLightValue(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.boundingBox.minY), MathHelper.floor_double(this.posZ)) > 8 && super.getCanSpawnHere(); } @Override diff --git a/src/main/java/com/gildedgames/the_aether/entities/passive/mountable/EntitySwet.java b/src/main/java/com/gildedgames/the_aether/entities/passive/mountable/EntitySwet.java index ccd476c..5458ff5 100644 --- a/src/main/java/com/gildedgames/the_aether/entities/passive/mountable/EntitySwet.java +++ b/src/main/java/com/gildedgames/the_aether/entities/passive/mountable/EntitySwet.java @@ -68,6 +68,12 @@ public class EntitySwet extends EntityMountable { } } + @Override + public boolean getCanSpawnHere() + { + return this.rand.nextInt(10) == 0 && super.getCanSpawnHere(); + } + @Override public void onUpdate() { super.onUpdate(); diff --git a/src/main/java/com/gildedgames/the_aether/world/biome/AetherBiome.java b/src/main/java/com/gildedgames/the_aether/world/biome/AetherBiome.java index 5eaf090..a999a77 100644 --- a/src/main/java/com/gildedgames/the_aether/world/biome/AetherBiome.java +++ b/src/main/java/com/gildedgames/the_aether/world/biome/AetherBiome.java @@ -58,7 +58,7 @@ public class AetherBiome extends BiomeGenBase { private void addCreatureEntry(ArrayList list) { - list.add(new SpawnListEntry(EntityAerwhale.class, 30, 1, 1)); + list.add(new SpawnListEntry(EntityAerwhale.class, 12, 1, 1)); list.add(new SpawnListEntry(EntityPhyg.class, 12, 4, 4)); list.add(new SpawnListEntry(EntitySheepuff.class, 10, 4, 4)); list.add(new SpawnListEntry(EntityFlyingCow.class, 8, 4, 4)); @@ -68,11 +68,11 @@ public class AetherBiome extends BiomeGenBase { private void addMobEntry(ArrayList list) { - list.add(new SpawnListEntry(EntityAechorPlant.class, 1000, 2, 3)); list.add(new SpawnListEntry(EntityCockatrice.class, 100, 4, 4)); - list.add(new SpawnListEntry(EntityZephyr.class, 95, 1, 2)); - list.add(new SpawnListEntry(EntityWhirlwind.class, 90, 1, 2)); - list.add(new SpawnListEntry(EntitySwet.class, 1, 2, 3)); + list.add(new SpawnListEntry(EntityZephyr.class, 50, 1, 2)); + list.add(new SpawnListEntry(EntityAechorPlant.class, 20, 2, 3)); + list.add(new SpawnListEntry(EntityWhirlwind.class, 10, 1, 2)); + list.add(new SpawnListEntry(EntitySwet.class, 10, 2, 3)); } @Override