Tweaked bird wing flapping
This commit is contained in:
parent
7690267d5a
commit
f41b8fe023
|
@ -108,7 +108,7 @@ public class BOPEntities {
|
||||||
|
|
||||||
if (Biomes.promisedLandForest.isPresent() && Biomes.promisedLandSwamp.isPresent() && Biomes.promisedLandPlains.isPresent())
|
if (Biomes.promisedLandForest.isPresent() && Biomes.promisedLandSwamp.isPresent() && Biomes.promisedLandPlains.isPresent())
|
||||||
{
|
{
|
||||||
EntityRegistry.addSpawn(EntityBird.class, 8, 1, 1, EnumCreatureType.ambient, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get());
|
EntityRegistry.addSpawn(EntityBird.class, 1, 1, 3, EnumCreatureType.monster, Biomes.promisedLandForest.get(), Biomes.promisedLandSwamp.get(), Biomes.promisedLandPlains.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,18 +77,18 @@ public class EntityBird extends EntityFlyingMob
|
||||||
@Override
|
@Override
|
||||||
protected String getLivingSound()
|
protected String getLivingSound()
|
||||||
{
|
{
|
||||||
return "biomesoplenty:mob.wasp.say";
|
return "biomesoplenty:mob.bird.say";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getHurtSound()
|
protected String getHurtSound()
|
||||||
{
|
{
|
||||||
return "biomesoplenty:mob.wasp.hurt";
|
return "biomesoplenty:mob.bird.hurt";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getDeathSound()
|
protected String getDeathSound()
|
||||||
{
|
{
|
||||||
return "biomesoplenty:mob.wasp.hurt";
|
return "biomesoplenty:mob.bird.hurt";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,8 +122,16 @@ public class ModelBird extends ModelBase
|
||||||
{
|
{
|
||||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||||
|
|
||||||
WingRight.rotateAngleZ = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F;
|
if (entity.motionY > 0 || (entity.motionX == 0 && entity.motionZ == 0))
|
||||||
WingLeft.rotateAngleZ = -WingRight.rotateAngleZ;
|
{
|
||||||
|
WingRight.rotateAngleZ = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F;
|
||||||
|
WingLeft.rotateAngleZ = -WingRight.rotateAngleZ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WingRight.rotateAngleZ = 0;
|
||||||
|
WingLeft.rotateAngleZ = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||||
public class SoundHandler
|
public class SoundHandler
|
||||||
{
|
{
|
||||||
static String[] recordSoundFiles = { "biomesoplenty:bopdisc.ogg", "biomesoplenty:bopdiscmud.ogg" };
|
static String[] recordSoundFiles = { "biomesoplenty:bopdisc.ogg", "biomesoplenty:bopdiscmud.ogg" };
|
||||||
static String[] soundFiles = { "biomesoplenty:mob/phantom/say.ogg", "biomesoplenty:mob/phantom/hurt.ogg", "biomesoplenty:mob/phantom/death.ogg", "biomesoplenty:mob/wasp/say.ogg", "biomesoplenty:mob/wasp/hurt.ogg" };
|
static String[] soundFiles = { "biomesoplenty:mob/phantom/say.ogg", "biomesoplenty:mob/phantom/hurt.ogg", "biomesoplenty:mob/phantom/death.ogg", "biomesoplenty:mob/wasp/say.ogg", "biomesoplenty:mob/wasp/hurt.ogg", "biomesoplenty:mob/bird/say.ogg", "biomesoplenty:mob/bird/hurt.ogg" };
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@ForgeSubscribe
|
@ForgeSubscribe
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue