From 701716f167d995322022fabfd87a6c794ddf13a8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 28 Feb 2021 12:14:37 +0200 Subject: [PATCH] Pegasi will drop pegasus feathers while flying --- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 4 ++++ 1 file changed, 4 insertions(+) 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 f0b10839..c278dc9c 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -257,6 +257,10 @@ public class PlayerPhysics extends EntityPhysics implements Tickable, Moti entity.fallDistance = 0; if (type.isAvian()) { applyThrust(entity, velocity); + + if (entity.world.random.nextInt(9000) == 0) { + entity.dropItem(UItems.PEGASUS_FEATHER); + } } moveFlying(entity, velocity); if (entity.world.hasRain(entity.getBlockPos())) {