Mojira Archive
MC-205372

Being extinguished by water or powder snow inside cauldrons doesn't play the "Fire extinguishes" sound

The Bug:

Being extinguished by water or powder snow inside cauldrons doesn't play the "Fire extinguishes" sound.

Steps to Reproduce:

  1. Build the setup as shown in the attachment below. setup.png
  2. Switch into survival mode and stand inside of the fire for a couple of seconds.
  3. 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.
  4. 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 [Mod] 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.

Unresolved

[Mod] Avoma

bugsbugsbugs

2020-11-12, 04:20 PM

2024-12-08, 01:00 PM

10

3

Confirmed

Sound

powder_snow_cauldron, water_cauldron

1.16.4 - 1.21.41.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, 1.21.4

-