Spawn rates changed
This commit is contained in:
parent
9835768f27
commit
86fbcc5e52
3 changed files with 15 additions and 4 deletions
|
@ -193,7 +193,7 @@ public class EntityAechorPlant extends EntityAetherAnimal
|
|||
@Override
|
||||
public boolean getCanSpawnHere()
|
||||
{
|
||||
return this.getBlockPathWeight(new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ)) == 10.0F;
|
||||
return this.getBlockPathWeight(new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ)) == 10.0F && this.worldObj.isDaytime();
|
||||
}
|
||||
|
||||
}
|
|
@ -7,6 +7,7 @@ import javax.annotation.Nullable;
|
|||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityAgeable;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.EnumCreatureType;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.monster.EntityMob;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -64,6 +65,12 @@ public class EntitySwet extends EntityMountable
|
|||
this.slimeJumpDelay = this.rand.nextInt(20) + 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCreatureType(EnumCreatureType type, boolean forSpawnCount)
|
||||
{
|
||||
return type == EnumCreatureType.MONSTER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRidden()
|
||||
{
|
||||
|
|
|
@ -54,10 +54,13 @@ public class AetherBiome extends Biome
|
|||
this.fillerBlock = BlocksAether.holystone.getDefaultState();
|
||||
}
|
||||
|
||||
public float getSpawningChance()
|
||||
{
|
||||
return 0.3F;
|
||||
}
|
||||
|
||||
private void addCreatureEntry(ArrayList<SpawnListEntry> list)
|
||||
{
|
||||
list.add(new SpawnListEntry(EntitySwet.class, 20, 4, 4));
|
||||
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,7 +70,8 @@ public class AetherBiome extends Biome
|
|||
|
||||
private void addMobEntry(ArrayList<SpawnListEntry> list)
|
||||
{
|
||||
list.add(new SpawnListEntry(EntityAechorPlant.class, 120, 1, 4));
|
||||
list.add(new SpawnListEntry(EntitySwet.class, 20, 1, 2));
|
||||
list.add(new SpawnListEntry(EntityAechorPlant.class, 70, 1, 2));
|
||||
list.add(new SpawnListEntry(EntityCockatrice.class, 60, 1, 2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue