block sounds
This commit is contained in:
parent
c602585e6a
commit
47b9ecbb94
14 changed files with 123 additions and 193 deletions
|
@ -850,11 +850,11 @@ public abstract class Entity
|
|||
{
|
||||
block$soundtype = Blocks.snow_layer.sound;
|
||||
if(block$soundtype.getStepSound() != null)
|
||||
this.playSound(block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(block$soundtype.getStepSound(), 0.15F);
|
||||
}
|
||||
else if (!blockIn.getMaterial().isLiquid() && block$soundtype.getStepSound() != null)
|
||||
{
|
||||
this.playSound(block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(block$soundtype.getStepSound(), 0.15F);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -440,7 +440,7 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
|||
{
|
||||
SoundType block$soundtype = block.sound;
|
||||
if(block$soundtype.getStepSound() != null)
|
||||
this.worldObj.playSoundAtEntity(this, block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.5F);
|
||||
this.worldObj.playSoundAtEntity(this, block$soundtype.getStepSound(), 0.5F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -637,25 +637,25 @@ public class EntityHorse extends EntityAnimal implements IInvBasic
|
|||
|
||||
if (this.gallopTime > 5 && this.gallopTime % 3 == 0)
|
||||
{
|
||||
this.playSound(SoundEvent.HORSE_GALLOP, block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(SoundEvent.HORSE_GALLOP, 0.15F);
|
||||
|
||||
if (i == 0 && this.rand.chance(10))
|
||||
{
|
||||
this.playSound(SoundEvent.HORSE_BREATHE, block$soundtype.getVolume() * 0.6F);
|
||||
this.playSound(SoundEvent.HORSE_BREATHE, 0.6F);
|
||||
}
|
||||
}
|
||||
else if (this.gallopTime <= 5)
|
||||
{
|
||||
this.playSound(SoundEvent.HORSE_WOOD, block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(SoundEvent.HORSE_WOOD, 0.15F);
|
||||
}
|
||||
}
|
||||
else if (block$soundtype == SoundType.WOOD)
|
||||
{
|
||||
this.playSound(SoundEvent.HORSE_WOOD, block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(SoundEvent.HORSE_WOOD, 0.15F);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.playSound(SoundEvent.HORSE_SOFT, block$soundtype.getVolume() * 0.15F);
|
||||
this.playSound(SoundEvent.HORSE_SOFT, 0.15F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1236,7 +1236,7 @@ public abstract class EntityLiving extends Entity
|
|||
{
|
||||
SoundType block$soundtype = block.sound;
|
||||
if(block$soundtype.getStepSound() != null)
|
||||
this.playSound(block$soundtype.getStepSound(), block$soundtype.getVolume() * 0.5F);
|
||||
this.playSound(block$soundtype.getStepSound(), 0.5F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue