mojira.dev
MC-30391

Chickens, blazes and the wither emit particles when landing from a height, despite falling slowly

None of these mobs sustain any fall damage from falling from a height, and they all also fall slower than other mobs.

Note that this does not affect other mobs such as parrots, which also fall slowly, nor does it affect mobs with the Slow Falling status effect.

Linked issues

Attachments

Comments 16

Affects 1.15.1. The resolution of this ticket is completely unexplained and does not seem correct at all.

Can confirm in 20w51a.

6 more comments

Can confirm in 1.18.1.

I can confirm this behavior in 22w06a. Here's a code analysis regarding this issue.

Code Analysis:

The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.

net.minecraft.world.entity.LivingEntity.java

public abstract class LivingEntity extends Entity {
   ...
   protected void checkFallDamage(double $d, boolean $b, BlockState $bs, BlockPos $bp) {
      ...
      if (!this.level.isClientSide && this.fallDistance > 3.0F && $b) {
         float f = (float)Mth.ceil(this.fallDistance - 3.0F);
         if (!$bs.isAir()) {
            double d0 = Math.min((double)(0.2F + f / 15.0F), 2.5D);
            int i = (int)(150.0D * d0);
            ((ServerLevel)this.level).sendParticles(new BlockParticleOption(ParticleTypes.BLOCK, $bs), this.getX(), this.getY(), this.getZ(), i, 0.0D, 0.0D, 0.0D, (double)0.15F);
         }
      }
      ...

If we look at the above class, we can see that no checks are carried out to see what living entity can produce falling/impact particles when landing from a height greater than three blocks. The only checks that are in place are as follows:

  • Was the action non-client-side?

  • Did the entity fall greater than three blocks?

  • Is the block that they landed on not equal to air?

This basically means that if any living entity falls from a height greater than three blocks, it can produce falling/impact particles regardless of whether or not they descended slowly.

Can confirm in 1.18.2 and 22w12a.

Can confirm in 1.19.

Can confirm in 1.19.2.

Gabriel Freitas

muzikbike

(Unassigned)

Confirmed

Gameplay

Low

Particles

particle-testing-corner, unnecessary-particles

Minecraft 13w36b, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, ..., 1.20, 1.20.1, 1.20.2 Pre-Release 4, 1.20.4, 24w35a

Retrieved