mojira.dev
MC-275913

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

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.

 

Attachments

Comments 3

Can confirm. See attachment.

No minecraft java não esta aumentando o dano da espada com o encantamento afiação...

 

regfunkid

kingbdogz

1288260

Confirmed

Expansion B

Normal

Commands, Sound

component, consume_item, food_component

24w34a, 25w02a

Retrieved