mojira.dev
MC-223153

Block of Raw Copper uses stone sounds instead of copper sounds

The Bug

The Block of Raw Copper uses the stone sounds instead of the copper sounds despite being a copper block

How to reproduce

  1. Place a Block of Raw Copper
    ❌ The sound played upon placing the block is a stone sound

Expected results

A copper sound, rather than a stone sound, would be played upon placing a block of raw copper.

Code analysis

Code analysis by @unknown provided in this comment.

Linked issues

Attachments

Comments 17

Can confirm.

Can confirm in 21w16a.

Can confirm in 21w17a.

Can confirm in 1.17.

Can confirm in 1.17.1.

7 more comments

I can confirm this behavior in 1.18 Release Candidate 1.

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.world.level.block.Blocks.java

public class Blocks {
   ...
   public static final Block RAW_COPPER_BLOCK = register("raw_copper_block", new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.COLOR_ORANGE).requiresCorrectToolForDrops().strength(5.0F, 6.0F)));
   ...

If we look at the above class, we can see that raw copper blocks do not contain the method sound(SoundType.COPPER) which is used for determining whether a block should produce copper sounds.

Potential Fix:

Simply adding the sound(SoundType.COPPER) method within this line of code should resolve this problem. The correct line of code within its class should look something like the following:

net.minecraft.world.level.block.Blocks.java

public class Blocks {
   ...
   public static final Block RAW_COPPER_BLOCK = register("raw_copper_block", new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.COLOR_ORANGE).requiresCorrectToolForDrops().strength(5.0F, 6.0F).sound(SoundType.COPPER)));
   ...

Can confirm in 1.18.2.

Can confirm in 1.19.1.

Can confirm in 1.19.2.

Raw copper is a mineral, not a metal. To get the metal you must smelt it.

So it is reasonable to sound like stone and not like copper.

anthony cicinelli

(Unassigned)

Confirmed

Gameplay

Normal

Sound

sounds

21w15a, 21w16a, 21w17a, 21w19a, 1.17, ..., 1.20.1, 23w32a, 1.20.2, 1.20.4, 1.21

Retrieved