-
Bug
-
Resolution: Unresolved
-
None
-
1.17.1, 1.18 Pre-release 1, 1.18 Pre-release 5, 1.18, 1.18.1, 22w03a, 22w06a, 1.18.2, 1.19 Pre-release 4, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21, 1.21.4
-
Confirmed
-
Networking, Sound
The Bug:
The "minecraft:item.elytra.flying" sound cannot be heard by other players when flying with elytra.
Steps to Reproduce:
- Get two players and label them "Player A" and "Player B".
- Get "Player A" to stand still and have "Player B" fly past them with elytra.
- Get "Player A" to listen closely as this happens.
- Take note as to whether or not the "minecraft:item.elytra.flying" sound can be heard by other players when flying with elytra.
Observed Behavior:
The "minecraft:item.elytra.flying" sound cannot be heard by other players.
Expected Behavior:
The "minecraft:item.elytra.flying" sound would be able to be heard by all players.
Code Analysis:
Code analysis by Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.19 Pre-release 4 using Mojang mappings.
public class ElytraOnPlayerSoundInstance extends AbstractTickableSoundInstance { ... private final LocalPlayer player; ... public ElytraOnPlayerSoundInstance(LocalPlayer localPlayer) { super(SoundEvents.ELYTRA_FLYING, SoundSource.PLAYERS, SoundInstance.createUnseededRandom()); this.player = localPlayer; ...
If we look at the above class, we can see that this sound event is only played to the local player (the player who is producing the sound) therefore making it not hearable by other players.
- relates to
-
MC-237252 The "minecraft:entity.puffer_fish.sting" sound cannot be heard by other players when being stung by pufferfish
- Open
-
MC-237165 Block breaking sounds cannot be heard by other players
- Open
-
MC-247034 Particles produced from entities growing cannot be seen by other players
- Open
-
MC-256890 The "minecraft:entity.generic.extinguish_fire" sound can only be heard by other players when being extinguished with splash water bottles
- Open