Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-205372

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

XMLWordPrintable

    • Icon: Bug 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
    • Confirmed
    • 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 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.

        1. MC-205372.mp4
          3.26 MB
        2. MC-205372.png
          MC-205372.png
          230 kB
        3. setup.png
          setup.png
          499 kB

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            10 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: