mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-20 03:44: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;
|
entity.fallDistance = 0;
|
||||||
if (type.isAvian()) {
|
if (type.isAvian()) {
|
||||||
applyThrust(entity, velocity);
|
applyThrust(entity, velocity);
|
||||||
|
|
||||||
|
if (entity.world.random.nextInt(9000) == 0) {
|
||||||
|
entity.dropItem(UItems.PEGASUS_FEATHER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
moveFlying(entity, velocity);
|
moveFlying(entity, velocity);
|
||||||
if (entity.world.hasRain(entity.getBlockPos())) {
|
if (entity.world.hasRain(entity.getBlockPos())) {
|
||||||
|
|
Loading…
Reference in a new issue