| Type: | Bug | ||
| Reporter: | Makzevu | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 40 |
| Labels: | heavy_weighted_pressure_plate, incorrect-block-sound, light_weighted_pressure_plate, vanilla-parity, weighted-pressure-plate | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Confirmed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
Parity, Sound
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mojang Priority: | Low | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
The BugWeighted pressure plates made out of metal make the wood sounds for breaking and placing. This occurs in both survival and creative mode. Expected ResultIt would make the metal noises for placing and breaking the block. Observed ResultIt made the wood noise for placing and breaking the block. How to Reproduce1. Place Weighted pressure plates to hear the wood place sound occur. Code analysisCode analysis by Avoma in this comment. |
| Comments |
| Comment by user-f2760 (Inactive) [ 08/Jun/23 ] |
|
Read the comment before yours. |
| Comment by Asadefa [ 08/Jun/23 ] |
|
Why is this "Won't Fix?" Is it really that hard to change the sound effects? |
| Comment by CrowdingFaun624 [ 20/Oct/22 ] |
|
This was fixed in 22w42a. |
| Comment by Austin Dean Koke [ 18/May/22 ] |
|
Can confirm in 22w20a. |
| Comment by [Mod] Avoma [ 28/Nov/21 ] |
|
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))); ... |
| Comment by [Mod] Avoma [ 18/Jul/21 ] |
|
Can confirm in 1.17.1. |
| Comment by [Mod] Avoma [ 16/Jun/21 ] |
|
Can confirm in 1.17. |
| Comment by [Mod] Avoma [ 30/Apr/21 ] |
|
Can confirm in 21w17a. |
| Comment by [Mod] Avoma [ 19/Apr/21 ] |
|
Can confirm in 21w15a. |
| Comment by [Mod] Avoma [ 18/Feb/21 ] |
|
Can confirm in 21w07a. Video attached. |
| Comment by [Mod] Avoma [ 12/Feb/21 ] |
|
Can confirm in 21w06a. |
| Comment by [Mod] Avoma [ 04/Feb/21 ] |
|
Can confirm in 21w05b. |
| Comment by [Mod] Avoma [ 21/Jan/21 ] |
|
Can confirm in 21w03a. |
| Comment by Dobbi [ 14/Aug/16 ] |
|
This affects 16w32b |
| Comment by user-f2760 (Inactive) [ 09/Apr/16 ] |
|
merged with |
| Comment by [Mod] Michael Wobst [ 17/Feb/16 ] |
|
Affects 1.9-pre1. |
| Comment by [Mod] Michael Wobst [ 02/Feb/16 ] |
|
Confirmed for 16w04a. |
| Comment by Swekob [ 27/Nov/15 ] |
|
Affects 15w47c |
| Comment by [Mod] Les3awe [ 20/Nov/15 ] |
|
Confirmed for 15w47b |
| Comment by [Mod] Les3awe [ 18/Nov/15 ] |
|
Confirmed for 15w47a |
| Comment by Swekob [ 12/Nov/15 ] |
|
Confirmed for 15w46a. |
| Comment by Swekob [ 28/Oct/15 ] |
|
Confirmed for 15w44a. |
| Comment by Swekob [ 25/Oct/15 ] |
|
Confirmed for 15w43c. |
| Comment by Swekob [ 22/Oct/15 ] |
|
Confirmed for 15w43b. |
| Comment by [Mod] Sonicwave [ 07/May/15 ] |
|
Confirmed for 1.8.4. |
| Comment by EnderCreeper132 [ 23/Oct/14 ] |
|
Confirmed in 1.8.1 pre1, pre2, and pre3. |
| Comment by [Mod] Sonicwave [ 13/Oct/14 ] |
|
Confirmed for 1.8. |
| Comment by kazblox [ 20/Aug/14 ] |
|
Confirmed for 14w34d |
| Comment by Christie N [ 08/Mar/14 ] |
|
Yes, still in 14w10c. |
| Comment by [Mod] Ezekiel (ezfe) [ 26/Feb/14 ] |
|
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. |
| Comment by Anon Ymus [ 23/Mar/13 ] |
|
Confirmed. |