Update patches to latest 1.21.4 #1

Merged
Chaoscaot merged 242 commits from update/1.21.4 into main 2025-04-23 22:27:11 +02:00
392 changed files with 5805 additions and 2490 deletions
Showing only changes of commit 5538d24d72 - Show all commits

View File

@ -211,6 +211,10 @@ public class CreatureSpawnEvent extends EntitySpawnEvent {
* When an entity spawns from an ominous item spawner
*/
OMINOUS_ITEM_SPAWNER,
/**
* When an entity spawns from a bucket
*/
BUCKET,
// Paper end - Fixes and additions to the SpawnReason API
/**
* When a creature is spawned by a potion effect, for example:

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/world/item/MobBucketItem.java
+++ b/net/minecraft/world/item/MobBucketItem.java
@@ -58,7 +_,7 @@
}
if (mob != null) {
- serverLevel.addFreshEntityWithPassengers(mob);
+ serverLevel.addFreshEntityWithPassengers(mob, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUCKET); // Paper - Add SpawnReason
mob.playAmbientSound();
}
}