mojira.dev
MC-6897

Weighted pressure plates make wood sounds when placing and destroying

The Bug

Weighted pressure plates made out of metal make the wood sounds for breaking and placing. This occurs in both survival and creative mode.

Expected Result

It would make the metal noises for placing and breaking the block.

Observed Result

It made the wood noise for placing and breaking the block.

How to Reproduce

1. Place Weighted pressure plates to hear the wood place sound occur.

2. Destroy Weighted pressure plates to hear the wood break sound occur.

Code analysis

Code analysis by @unknown in this comment.

Related issues

MC-12366 Weighted pressureplate issue MC-18485 Iron and Gold weight pressure pads make wood noises MC-21902 Wrong Sounds MC-25274 Weighted Pressure Plates Have The Wood Template Of Sound Effects MC-25470 gold/iron pressure plates make wood sound when breaking MC-68422 Weighted Pressure Plate Doesn't have correct sound MC-71452 Weighted Pressure Plates have wrong Sound Type MC-100710 Weighted pressure plates make wood sounds MC-160290 Weighted pressure plates (Heavy and Light) make the sound of wood when placed or destroyed, despite being made of iron and gold. MC-170668 Weighted pressure plates still use wooden step sounds despite them being made of gold/iron. MC-176207 Weighted pressure plates go beensh instead of kak MC-183598 golden and iron pressure plate place and break sound is wooden MC-194443 Wrong placing sound for golden and iron pressure plates MC-198081 Golden and iron pressure plate MC-200151 Wrong sounds in Weighted Pressure Plates

Attachments

Comments

migrated
[media][media][media]
migrated

Confirmed.

Ezekiel

Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Yes, still in 14w10c.

migrated

Confirmed for 14w34d

Sonicwave

Confirmed for 1.8.

migrated

Confirmed in 1.8.1 pre1, pre2, and pre3.

Sonicwave

Confirmed for 1.8.4.

migrated

Confirmed for 15w43b.
Relates to MC-33384.

migrated

Confirmed for 15w43c.

migrated

Confirmed for 15w44a.

migrated

Confirmed for 15w46a.

[Mod]Les3awe

Confirmed for 15w47a

[Mod]Les3awe

Confirmed for 15w47b

migrated

Affects 15w47c

wobst.michael

Confirmed for 16w04a.

wobst.michael

Affects 1.9-pre1.

migrated

merged with MC-91091

migrated

This affects 16w32b

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a. Video attached.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

Avoma

Can confirm in 1.17.1.

Avoma

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

public class Blocks {
   ...
   public static final Block LIGHT_WEIGHTED_PRESSURE_PLATE = register("light_weighted_pressure_plate", new WeightedPressurePlateBlock(15, BlockBehaviour.Properties.of(Material.METAL, MaterialColor.GOLD).requiresCorrectToolForDrops().noCollission().strength(0.5F).sound(SoundType.WOOD)));

   public static final Block HEAVY_WEIGHTED_PRESSURE_PLATE = register("heavy_weighted_pressure_plate", new WeightedPressurePlateBlock(150, BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().noCollission().strength(0.5F).sound(SoundType.WOOD)));
   ...

If we look at the above class, we can see that light and heavy weighted pressure plates utilize the .sound(SoundType.WOOD) method which is used for determining whether a block should produce wood sounds.

Potential Fix:

Simply replacing the .sound(SoundType.WOOD) method with .sound(SoundType.METAL) within these lines of code should resolve this problem, as light and heavy weighted pressure plates are predominantly constructed of metal. The correct lines of code within their class should look something like the following:

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

public class Blocks {
   ...
   public static final Block LIGHT_WEIGHTED_PRESSURE_PLATE = register("light_weighted_pressure_plate", new WeightedPressurePlateBlock(15, BlockBehaviour.Properties.of(Material.METAL, MaterialColor.GOLD).requiresCorrectToolForDrops().noCollission().strength(0.5F).sound(SoundType.METAL)));

   public static final Block HEAVY_WEIGHTED_PRESSURE_PLATE = register("heavy_weighted_pressure_plate", new WeightedPressurePlateBlock(150, BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().noCollission().strength(0.5F).sound(SoundType.METAL)));
   ...
migrated

Can confirm in 22w20a.

NOoooo3333

This was fixed in 22w42a.

migrated

Why is this "Won't Fix?" Is it really that hard to change the sound effects?

migrated

Read the comment before yours.

Makzevu

(Unassigned)

Confirmed

Low

Parity, Sound

heavy_weighted_pressure_plate, incorrect-block-sound, light_weighted_pressure_plate, vanilla-parity, weighted-pressure-plate

Snapshot 13w01b, Snapshot 13w02a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, ..., 1.17.1, 21w39a, 1.18 Release Candidate 3, 1.18, 1.18.1

Retrieved