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
GhastFixed in 23w18a.PhantomFixed in 23w18a.
Steps to Reproduce
Create a Superflat world:
minecraft:bedrock,124*minecraft:amethyst_block,4*minecraft:air,minecraft:glass;minecraft:the_void
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
discovered while testing 1
is duplicated by 2
relates to 2
Attachments
Comments 25
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.
Can confirm in 1.17. @unknown, the issue with the elytra making footstep sounds when gliding in/near a block is MC-209104. 😃
Also affects Snow Golems.