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.21.90",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:zombie",
      "spawn_category": "monster",
      "is_spawnable": true,
      "is_summonable": true
    },
    "component_groups": {
      // vanilla component groups...
    },
    "events": {
      // vanilla events...
    },
    "components": {
      "minecraft:sound_volume": { "value": 0.0 }, // <----------

      // vanilla components...
    }
  }
}

manifest.json

{
  "format_version": 2,
  "header": {
    "name": "silencer",
    "description": "",
    "uuid": "e06ab48c-4bcb-40b7-be45-0f97a4394086",
    "version": [1, 0, 0],
    "min_engine_version": [1, 21, 100]
  },
  "modules": [
    {
      "type": "data",
      "uuid": "da85e38b-216d-4056-a964-fee8d87222a8",
      "version": [1, 0, 0]
    }
  ],
  "dependencies": [
    {
      "module_name": "@minecraft/server",
      "version": "2.1.0"
    }
  ]
}

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 1

UPDATE: Still an issue in 26.0.

4444

(Unassigned)

1461207

Confirmed

Multiple

1.21.100, 26.0

Retrieved