minecraft:swing_duration
Duration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
value | Decimalmin 0 | 0.3 | Duration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics. |
Example from the game files
This is how vanilla copper_spear uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:swing_duration": {
"value": 0.85
}
}Used by 7
Vanilla items with minecraft:swing_duration in their definition:
copper_speardiamond_speargolden_speariron_spearnetherite_spearstone_spearwooden_spear