mojira.dev
MC-177458

Turtle egg sound events are listed under entity, not block

As these sound events are associated with the turtle egg block and not the turtle entity, they should be moved to the blocks category. As per MC-261746, the sound event names should also be made to make "turtle egg" the focus as opposed to "turtle".

Linked issues

Attachments

Comments 12

Can confirm in 20w51a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w15a.

2 more comments

Here's a code analysis along with a potential fix regarding this issue. The following is based on a decompiled version of Minecraft 1.17.1 using MCP-Reborn.

Code Analysis:

net.minecraft.sounds.SoundEvents.java

public class SoundEvents {
   ...
   public static final SoundEvent TURTLE_EGG_BREAK = register("entity.turtle.egg_break");
   public static final SoundEvent TURTLE_EGG_CRACK = register("entity.turtle.egg_crack");
   public static final SoundEvent TURTLE_EGG_HATCH = register("entity.turtle.egg_hatch");
   ...

If we look at the above class, we can see that turtle egg sounds are listed as sounds being produced from entities.

Potential Fix:

Simply changing what turtle egg sounds are listed as to "block" should resolve this problem. The correct line of code within its class should look something like the following:

net.minecraft.sounds.SoundEvents.java

public class SoundEvents {
   ...
   public static final SoundEvent TURTLE_EGG_BREAK = register("block.turtle.egg_break");
   public static final SoundEvent TURTLE_EGG_CRACK = register("block.turtle.egg_crack");
   public static final SoundEvent TURTLE_EGG_HATCH = register("block.turtle.egg_hatch");
   ...

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.

Can confirm in 1.19.2.

muzikbike

(Unassigned)

Confirmed

Gameplay

Low

Sound

incorrect-sound-event-id, sound-testing-zone

20w14a, 20w15a, 20w18a, 20w20a, 20w21a, ..., 1.19.4, 23w12a, 23w14a, 1.20.1, 1.21

Retrieved