2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/animal/EntityChicken.java
|
|
|
|
+++ b/net/minecraft/world/entity/animal/EntityChicken.java
|
2023-09-21 18:40:00 +02:00
|
|
|
@@ -97,7 +97,9 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
this.flap += this.flapping * 2.0F;
|
2023-06-07 17:30:00 +02:00
|
|
|
if (!this.level().isClientSide && this.isAlive() && !this.isBaby() && !this.isChickenJockey() && --this.eggTime <= 0) {
|
2021-06-11 07:00:00 +02:00
|
|
|
this.playSound(SoundEffects.CHICKEN_EGG, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
|
2016-03-08 07:58:52 +01:00
|
|
|
+ this.forceDrops = true; // CraftBukkit
|
2021-11-21 23:00:00 +01:00
|
|
|
this.spawnAtLocation((IMaterial) Items.EGG);
|
2016-03-08 07:58:52 +01:00
|
|
|
+ this.forceDrops = false; // CraftBukkit
|
2022-06-07 18:00:00 +02:00
|
|
|
this.gameEvent(GameEvent.ENTITY_PLACE);
|
2021-06-11 07:00:00 +02:00
|
|
|
this.eggTime = this.random.nextInt(6000) + 6000;
|
2016-03-08 07:58:52 +01:00
|
|
|
}
|