minecraft:swing_sounds
Overrides the swing sounds emitted by the user. Each field accepts the name of any sound event defined in `sound_definitions.json`, including the built-in vanilla sound events.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
attack_miss | Text | — | Sound played when an attack misses or deals no damage due to invulnerability. |
attack_hit | Text | — | Sound played when an attack hits. |
attack_critical_hit | Text | — | Sound played when an attack hits and deals critical damage. |
Example from the game files
This is how vanilla netherite_spear uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:swing_sounds": {
"attack_miss": "item.netherite_spear.attack_miss",
"attack_hit": "item.netherite_spear.attack_hit"
}
}Used by 7
Vanilla items with minecraft:swing_sounds in their definition:
copper_speardiamond_speargolden_speariron_spearnetherite_spearstone_spearwooden_spear