Play a sound when a pegasus drops a feather

This commit is contained in:
Sollace 2021-09-02 19:27:05 +02:00
parent 6e9a9f47de
commit 5894c8745c

View file

@ -316,6 +316,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
if (entity.world.random.nextInt(9000) == 0) {
entity.dropItem(UItems.PEGASUS_FEATHER);
entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1);
}
}