The sound of blocking with a shield is only hearable by other players (not the person blocking)
The bug
There is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with their shield, they cannot hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Code analysis
Code analysis by Marcono1234 can be found in this comment.
Linked Issues
relates to4
Created Issue:
The sound of blocking with a shield is only hearable by other players
Was playing multi-player and discovered there is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with his shield, he can not hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
The sound of blocking with a shield is only hearable by other players (not the person blocking)
duplicates
duplicates
relates to
Was playing multi-player and discovered there is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with his shield, he can not hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Was playing multi-player and discovered there is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with his shield, he can not hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Was playing multi-player and discovered there is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with his shield, he can not hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Code analysis by Marcono1234 can be found in this comment.
relates to
Was playing multi-player and discovered there is a 'shield blocking' sound when you right click to block with your shield.However if player A blocks withhisshield, he cannot hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Code analysis by Marcono1234 can be found in this comment.
The bug
There is a 'shield blocking' sound when you right click to block with your shield. However if player A blocks with their shield, they cannot hear the sound; only player B standing nearby can hear it. (The sound apparently does not play in single-player.)
Code analysis
Code analysis by Marcono1234 can be found in this comment.
I thought this issue was that the blocking sound is only heard by the person blocking, and not other players?
is duplicated by
relates to
relates to
This report actually appears to be a duplicate of MC-98271, which hasn't yet been resolved. If you have any additional information to provide regarding this issue, feel free to comment on the parent ticket. If you feel that this issue is affecting you, feel free to vote for the duplicated ticket, to give Mojang a basic idea of how many people are impacted by the problem. Just to further inform you, this will not determine how quickly the bug gets handled or fixed.
Btw [Mod] Avoma, did you test in survival? because this behavior in particular is pretty familiar to me, and also you tried blocking with the shield but no sound was played even though MC-98271 is a thing.
This is not that duplicate. This has nothing to do with damage, this is just standing in a peaceful field and right clicking your shield to move it in front of your body.
Please link to this comment in the description
The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.
The reason why this happens is very likely because the net.minecraft.entity.player.EntityPlayer.playSound(SoundEvent, float, float) method is called by the net.minecraft.entity.EntityLivingBase.func_184606_a_(ItemStack) method to play the sound. This method is for reasons I do not know at the moment only called server-side. This method calls other methods calling the method net.minecraft.server.management.PlayerList.sendToAllNearExcept(EntityPlayer, double, double, double, double, int, Packet<?>) with the current player as argument for the EntityPlayer parameter. This method, as its name already suggests, sends a packet to all near players except the specified one.
Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.
This is an automated comment on any open or reopened issue with out-of-date affected versions.
Confirmed in 1.11.2
Still an issue in 1.14, I'm also requesting to be the reporter since the current one is inactive.
Confirmed in 1.14.4
Still an issue in 1.15.2 and 20w10a
Still in 20w12a
Still in 20w13b
Affects 20w16a
Affects 20w17a
Affects 20w19a
There are some circumstances where the sound plays only for the person blocking with the shield, and not anybody else. Very strange. Confirmed for 20w20b
Can confirm in 1.16.4
Blocking with a shield no longer makes a sound for anyone. Should this be reported as a bug?