mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Play a sound when a pegasus drops a feather
This commit is contained in:
parent
6e9a9f47de
commit
5894c8745c
1 changed files with 1 additions and 0 deletions
|
@ -316,6 +316,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
||||||
|
|
||||||
if (entity.world.random.nextInt(9000) == 0) {
|
if (entity.world.random.nextInt(9000) == 0) {
|
||||||
entity.dropItem(UItems.PEGASUS_FEATHER);
|
entity.dropItem(UItems.PEGASUS_FEATHER);
|
||||||
|
entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue