Prevent Sound
Prevents sound events from being heard by the entity that has the power.
Type ID: apugli:prevent_sound
Fields
| Field | Type | Default | Description |
|---|---|---|---|
category |
String | optional | If specified, all sound events from this category will be prevented from being heard by the entity that has the power. Can accept "ambient", "blocks", "hostile", "master", "music", "neutral", "players", "records", "voice" and "weather". |
categories |
Array of Strings | optional | If specified, all sound events from these categories will be prevented from being heard by the entity that has the power. Can accept "ambient", "blocks", "hostile", "master", "music", "neutral", "players", "records", "voice" and "weather". |
sound |
Identifier | optional | If specified, this sound event will be prevented from being heard by the entity that has the power. |
sounds |
Array of Identifiers | optional | If specified, these sound events will be prevented from being heard by the entity that has the power. |
whitelist |
Array of Identifiers | optional | If specified, these sound events will be exempt from being prevented. |
Examples
{
"type": "apugli:prevent_sound",
"categories": [
"BLOCKS"
],
"whitelist": [
"minecraft:block.glass.break"
]
}
This example will prevent sound events from the BLOCKS sound category from being heard by the entity that has the power except for the minecraft:block.glass.break sound event.