-
Bug
-
Resolution: Unresolved
-
None
-
1.16.4, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17, 1.17.1, 21w40a, 21w41a, 21w43a, 1.18, 1.18.1, 22w05a, 22w06a, 1.18.2 Pre-release 2, 1.18.2, 22w14a, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21, 1.21.3
-
Confirmed
-
Sound
The Bug:
Being extinguished by water or powder snow inside cauldrons doesn't play the "Fire extinguishes" sound.
Steps to Reproduce:
- Build the setup as shown in the attachment below. setup.png
- Switch into survival mode and stand inside of the fire for a couple of seconds.
- Approach and stand inside of the water or powder snow cauldrons in order to be extinguished from burning, and as you do this, listen closely.
- Take note as to whether or not being extinguished by water or powder snow inside cauldrons plays the "Fire extinguishes" sound.
Observed Behavior:
The "Fire extinguishes" sound isn't played.
Expected Behavior:
The "Fire extinguishes" sound would be played.
Code Analysis:
Code analysis by Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.
net.minecraft.world.level.block.LayeredCauldronBlock.java
public class LayeredCauldronBlock extends AbstractCauldronBlock { ... public void entityInside(BlockState $bs, Level $l, BlockPos $bp, Entity $e) { if (!$l.isClientSide && $e.isOnFire() && this.isEntityInsideContent($bs, $bp, $e)) { $e.clearFire(); if ($e.mayInteract($l, $bp)) { this.handleEntityOnFireInside($bs, $l, $bp); } } } ...
If we look at the above class, we can see that when an entity is extinguished in a water or powder snow cauldron, no method responsible for playing the appropriate sound is called, resulting in no sound being played.