Pegasi will drop pegasus feathers while flying

This commit is contained in:
Sollace 2021-02-28 12:14:37 +02:00
parent b625824270
commit 701716f167

View file

@ -257,6 +257,10 @@ public class PlayerPhysics extends EntityPhysics<Pony> 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())) {