From b176f6f2405949df35c16f04b201211f792e56dd Mon Sep 17 00:00:00 2001 From: Kino Date: Sat, 24 Dec 2016 11:51:54 -0500 Subject: [PATCH] Heavily increased Aechor Plant spawning --- .../server/entities/hostile/EntityAechorPlant.java | 14 ++++++++++---- .../aether/server/world/biome/AetherBiome.java | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/legacy/aether/server/entities/hostile/EntityAechorPlant.java b/src/main/java/com/legacy/aether/server/entities/hostile/EntityAechorPlant.java index 2fce69c..3b273be 100644 --- a/src/main/java/com/legacy/aether/server/entities/hostile/EntityAechorPlant.java +++ b/src/main/java/com/legacy/aether/server/entities/hostile/EntityAechorPlant.java @@ -178,9 +178,15 @@ public class EntityAechorPlant extends EntityAetherAnimal } @Override - public int getMaxSpawnedInChunk() - { - return 2; - } + public int getMaxSpawnedInChunk() + { + return 2; + } + + @Override + public boolean getCanSpawnHere() + { + return this.getBlockPathWeight(new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ)) == 10.0F; + } } \ No newline at end of file diff --git a/src/main/java/com/legacy/aether/server/world/biome/AetherBiome.java b/src/main/java/com/legacy/aether/server/world/biome/AetherBiome.java index 912bd53..e143ab0 100644 --- a/src/main/java/com/legacy/aether/server/world/biome/AetherBiome.java +++ b/src/main/java/com/legacy/aether/server/world/biome/AetherBiome.java @@ -57,7 +57,7 @@ public class AetherBiome extends Biome private void addCreatureEntry(ArrayList list) { list.add(new SpawnListEntry(EntitySwet.class, 20, 4, 4)); - list.add(new SpawnListEntry(EntityAechorPlant.class, 76, 3, 3)); + list.add(new SpawnListEntry(EntityAechorPlant.class, 120, 3, 3)); list.add(new SpawnListEntry(EntitySheepuff.class, 30, 4, 4)); list.add(new SpawnListEntry(EntityPhyg.class, 39, 4, 4)); list.add(new SpawnListEntry(EntityMoa.class, 40, 3, 3)); @@ -67,6 +67,7 @@ public class AetherBiome extends Biome private void addMobEntry(ArrayList list) { + list.add(new SpawnListEntry(EntityAechorPlant.class, 120, 1, 4)); list.add(new SpawnListEntry(EntityCockatrice.class, 60, 1, 2)); }