mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Pegasi will drop pegasus feathers while flying
This commit is contained in:
parent
b625824270
commit
701716f167
1 changed files with 4 additions and 0 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Reference in a new issue