Swell a creeper's fuse when it falls

This commit is contained in:
Kacpherek
2026-10-26 18:51:45 +01:00
parent 17fa57db3d
commit 5657080884
+5
View File
@@ -625,6 +625,11 @@ impl Mob {
let at = [self.position.x, self.position.y, self.position.z];
events.push(MobEvent::Sound("entity.breeze.land", at, 1.0, 1.0));
}
// Creeper.causeFallDamage: the fall swells the fuse, up to five ticks
// short of exploding.
if self.species() == super::Species::Creeper {
self.swell = (self.swell + (self.fall_distance * 1.5) as i32).min(30 - 5);
}
if self.kind.flags.fall_immune {
return;
}