mojira.dev
MC-92623

Certain mobs play footstep sounds and subtitles when they shouldn't

The Bug

The following mobs all play footsetp sounds when they most likely shouldn't as they have no legs and feet:

  • Armor stand

  • Axolotl (When swimming)

  • Blaze

  • Bee (No subtitles but sound)

  • Breeze (When it lands)

  • Cod

  • Dolphin

  • Magma cube

  • Puffer fish

  • Rabbit (When pushing it)

  • Salmon

  • Slime

  • Snow golem

  • Tropical fish

  • Turtle (No subtitles but sound)

  • Wither

  • Ghast Fixed in 23w18a.

  • Phantom Fixed in 23w18a.

Steps to Reproduce

  1. Create a Superflat world:

    minecraft:bedrock,124*minecraft:amethyst_block,4*minecraft:air,minecraft:glass;minecraft:the_void
  2. Observe whether the amethyst block makes a sound when the mobs moves.

Video demonstrating the issue:

https://www.youtube.com/watch?v=hhbjID89-fg

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 25

Also affects Snow Golems.

I think Snow Golems are intended actually

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The affected entities could override the method net.minecraft.entity.Entity.playStepSound(BlockPos, Block) to prevent the sound from being played or to play a different sound. This method is called by the net.minecraft.entity.Entity.moveEntity(double, double, double) method, which is however only called when an entity is on the ground so for flying mobs this would probably need to be solved differently.

Snow Golems don't have feet, so they shouldn't play footstep sound.

Confirmed with blazes, 18w20b

15 more comments

The player does this as well when flying using elytra.

Can confirm in 1.17. @unknown, the issue with the elytra making footstep sounds when gliding in/near a block is MC-209104. 😃

Can confirm in 1.18.1.

Can confirm in 1.18.2.

[Mod]Les3awe

(Unassigned)

Confirmed

Gameplay

Low

Accessibility, Mob behaviour, Sound

armor_stand, blaze, code, dolphin, footsteps, ghast, magma_cube, phantom, pufferfish, salmon, slime, snow_golem, sound, tropical_fish, wither

Minecraft 1.8.8, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, ..., 1.21.5, 25w17a, 1.21.6 Pre-Release 3, 1.21.8, 25w34b

Retrieved