From 5894c8745ca8408b2068b27a2efa8232e84d6fec Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 2 Sep 2021 19:27:05 +0200 Subject: [PATCH] Play a sound when a pegasus drops a feather --- .../com/minelittlepony/unicopia/entity/player/PlayerPhysics.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index 5417d49e..f1a064e6 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -316,6 +316,7 @@ public class PlayerPhysics extends EntityPhysics implements Tickab if (entity.world.random.nextInt(9000) == 0) { entity.dropItem(UItems.PEGASUS_FEATHER); + entity.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 0.3F, 1); } }