mojira.dev
MC-218109

Enchanting table use sound event still uses old pre-1.13 block ID

The block was renamed from minecraft:enchantment_table to minecraft:enchanting_table in 1.13, however this sound event (and its subtitle string) still use the old ID for some reason.

Linked issues

Attachments

Comments 7

Can you also test to see if this affects 1.16.5 @unknown

I can confirm this behavior in 1.18 Release Candidate 3.

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 ENCHANTMENT_TABLE_USE = register("block.enchantment_table.use");
   ...

If we look at the above class, we can see that the "enchantment table use" sound event uses the old block ID for enchanting tables. The incorrect and current block ID for this sound event is "enchantment_table" and the correct and expected block ID would instead be "enchanting_table".

Potential Fix:

Simply renaming the word "enchantment" to "enchanting" within this sound event should resolve this issue. 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 ENCHANTING_TABLE_USE = register("block.enchanting_table.use");
   ...

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

muzikbike

(Unassigned)

Confirmed

Block states, Text

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

1.16.5, 21w08b, 21w20a, 1.17 Pre-release 1, 1.18 Release Candidate 3, ..., 1.19.2, 1.19.4, 23w14a, 1.20.1, 1.20.4

Retrieved