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
relates to 2
Attachments
Comments 12
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 20w51a.