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

The "sound" portion of the "minecraft:consumable" component always plays its burp sound effect when the "minecraft:food" component is also used

XMLWordPrintable

    • Confirmed
    • Commands, Sound
    • Normal
    • 1288260
    • Expansion B

      A strangely specific bug I encountered, the sound of consuming an item will always play its "burp" sound effect, even if "player" volume is turned off, whenever a "minecraft:food" component is also present. The volume of the burp sound effect is whatever the "Master Volume" is set to.

      How To Replicate:

      • Give yourself an edible item using this command:
        /give @p stick[minecraft:consumable={sound:"entity.generic.eat"},food={nutrition:1,saturation:0,can_always_eat:true}]
      • Go into the game settings and turn "Players" volume to "OFF"
      • Consume the item

      What happens is that, despite the regular eating sound effect being muted, the ending burp will be played regardless. This seems to happen no matter what the actual sound is set to, as long as the "food" component is present.

      I believe this is caused by the game somehow playing the sound twice due to first registering that the food is being eaten (from the "consumable" component) before playing it again from the "food" component registering. Although I'm very unsure if that even makes sense.

       

            kingbdogz [Mojang] Brandon Pearce
            regfunkid Reggie Ababio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: