mojira.dev
MCPE-226588

Entity component `minecraft:sound_volume` does not affect the volume of sounds made by mobs

Steps to reproduce the issue:

  1. Create a behavior pack for a zombie that includes the entity component
    "minecraft:sound_volume": { "value": 0.0 }
    (or use the attached pack that does that)

  2. Create a world

    1. Creative mode

    2. Enable cheats

    3. Add behavior pack

  3. /time set midnight (so zombie won’t burn)

  4. /summon zombie

  5. Wait for the zombie to growl by itself or punch it

Expected result: Zombie does not produce any audible sounds (growling, hit sounds).

Actual result: Zombie still makes audible sounds.

I also noticed that the scripting API does not support the minecraft:sound_volume entity component (see: https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/entitycomponenttypes?view=minecraft-bedrock-stable), which might be related to this bug. However, this bug report focuses solely on the entity JSON behavior.

Pack contents:

entities/zombie.json (vanilla behavior omitted for brevity)

{
  "format_version": "1.26.20",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:zombie",
      "is_summonable": true,
      "is_spawnable": true,
      "properties": {
        // vanilla properties...
      },
      "spawn_category": "monster"
    },
    "components": {
      "minecraft:sound_volume": { "value": 0.0 } // <----------

      // vanilla components...
    },
    "component_groups": {
      // vanilla component groups...
    },
    "events": {
      // vanilla events...
    }
  }
}

manifest.json

{
  "format_version": 2,
  "header": {
    "name": "[MCPE-226588] Zombie silencer (v2)",
    "description": "",
    "uuid": "94185fc4-c70c-4e08-b0e4-21972a666d9f",
    "version": [2, 0, 0],
    "min_engine_version": [1, 26, 40]
  },
  "modules": [
    {
      "type": "data",
      "uuid": "c8b3502e-bdfa-4ab9-b198-7feb647d8309",
      "version": [1, 0, 0]
    }
  ],
  "dependencies": []
}

Related docs for reference: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_sound_volume?view=minecraft-bedrock-stable

Attachments

Comments 4

UPDATE: Still an issue in 26.0.

UPDATE: Still an issue in 26.20.

Updated pack’s entities/zombie.json to align with v1.26.40.5 bedrock-samples version (plus the minecraft:sound_volume component of course).

[media]

UPDATE: Still an issue in 26.40.

4444

(Unassigned)

1461207

Confirmed

Multiple

1.21.100, 26.0, 26.23 Hotfix, 26.40, 26.41 Hotfix, 26.42 Hotfix

Retrieved