#178 - Adjusted all of the health on the mobs.
This commit is contained in:
parent
d6d7922da9
commit
53c6fe652a
3 changed files with 18 additions and 4 deletions
|
@ -55,9 +55,9 @@ public class EntityCockatrice extends EntityMob
|
||||||
super.applyEntityAttributes();
|
super.applyEntityAttributes();
|
||||||
|
|
||||||
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
|
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
|
||||||
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10D);
|
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
|
||||||
this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(35.0D);
|
this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(35.0D);
|
||||||
this.setHealth(10);
|
this.setHealth(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.legacy.aether.common.entities.hostile;
|
package com.legacy.aether.common.entities.hostile;
|
||||||
|
|
||||||
import net.minecraft.entity.EntityFlying;
|
import net.minecraft.entity.EntityFlying;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
import net.minecraft.entity.ai.EntityAILookIdle;
|
import net.minecraft.entity.ai.EntityAILookIdle;
|
||||||
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
import net.minecraft.entity.ai.EntityAIWatchClosest;
|
||||||
import net.minecraft.entity.monster.IMob;
|
import net.minecraft.entity.monster.IMob;
|
||||||
|
@ -41,6 +42,15 @@ public class EntityZephyr extends EntityFlying implements IMob
|
||||||
this.tasks.addTask(6, new EntityAILookIdle(this));
|
this.tasks.addTask(6, new EntityAILookIdle(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void applyEntityAttributes()
|
||||||
|
{
|
||||||
|
super.applyEntityAttributes();
|
||||||
|
|
||||||
|
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(5D);
|
||||||
|
this.setHealth(5);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getCanSpawnHere()
|
public boolean getCanSpawnHere()
|
||||||
{
|
{
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class EntityMoa extends EntitySaddleMount
|
||||||
{
|
{
|
||||||
super.applyEntityAttributes();
|
super.applyEntityAttributes();
|
||||||
|
|
||||||
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10.0D);
|
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(35.0D);
|
||||||
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(1.0D);
|
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(1.0D);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -362,6 +362,10 @@ public class EntityMoa extends EntitySaddleMount
|
||||||
stack.damageItem(2, player);
|
stack.damageItem(2, player);
|
||||||
|
|
||||||
this.setSitting(this.isSitting() ? false : true);
|
this.setSitting(this.isSitting() ? false : true);
|
||||||
|
if (!this.worldObj.isRemote)
|
||||||
|
{
|
||||||
|
this.spawnExplosionParticle();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -461,7 +465,7 @@ public class EntityMoa extends EntitySaddleMount
|
||||||
@Override
|
@Override
|
||||||
public double getMountedYOffset()
|
public double getMountedYOffset()
|
||||||
{
|
{
|
||||||
return 1.25D;
|
return this.isSitting() ? 0.25D: 1.25D;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue